Skip to content

default includeSelectAllDivider, switch to div#277

Closed
thorst wants to merge 1 commit intodavidstutz:masterfrom
thorst:divider_fixes
Closed

default includeSelectAllDivider, switch to div#277
thorst wants to merge 1 commit intodavidstutz:masterfrom
thorst:divider_fixes

Conversation

@thorst
Copy link

@thorst thorst commented Mar 31, 2014

There isnt a need to have divider be an li. If it is you have to add a bunch of mods on existing jQuery selectors, in order not to catch that one. Make it a div, it looks the same, and doesnt break other features

There isnt a need to have divider be an li. If it is you have to add a bunch of mods on existing jQuery selectors, in order not to catch that one
@philfreo
Copy link
Contributor

👎 since I don't think it's valid HTML to have a div as a direct child of a UL.

@thorst
Copy link
Author

thorst commented Mar 31, 2014

The search is already a div within a list.

If you want to conform to standards then just have the first li contain the search, select all, and select all divider.

@philfreo
Copy link
Contributor

dividers can appear in places anywhere in the list - not just the top

@thorst
Copy link
Author

thorst commented Mar 31, 2014

that's technically true, but I'm not sure why you would use dividers over groups.

curious on your thoughts on the search box....

@philfreo
Copy link
Contributor

I use dividers to logically (and visually) separate optgroups from optgroups that would have a single option (since having an empty optgroup doesn't make sense)

screen shot 2014-03-31 at 11 17 20 am

yup, the search div should be inside an <li>

@davidstutz
Copy link
Owner

I agree with @philfreo. For now I will not merge this request (thanks anyway!), but I think about making the templates configurable. This would solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants