You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue wherein if the sortSelect setting is set for a dropdown, it does not apply to items injected into the dropdown at a later time (via setup menu):
Example (if possible)
Adding a behavior such as sort(value) where value is one of the existing sortSelect options (natural, function(a, b){}). Calling sort() with no argument will default to true.
The text was updated successfully, but these errors were encountered:
The values object can also contain submenus or additional headers or dividers (see https://fomantic-ui.com/modules/dropdown.html#initializing-with-javascript-only).
That said, it isn't the same simple one-level sort logic as for sorting the select values on initial conversion (what sortSelect is for) and could get quite complex to support every possible item type.
If you want to use the "setup menu" behavior, i suggest you make sure the the provided data is sorted as you like beforehand on your own.
Feature Request
I'm running into an issue wherein if the
sortSelect
setting is set for a dropdown, it does not apply to items injected into the dropdown at a later time (viasetup menu
):Example (if possible)
Adding a behavior such as
sort(value)
wherevalue
is one of the existingsortSelect
options (natural
,function(a, b){}
). Callingsort()
with no argument will default totrue
.The text was updated successfully, but these errors were encountered: