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
Let's assume a <select multiple> containing four items: "First", "Second", "Third" and "Fourth".
When selecting an item, the default behavior of Tom Select is to append the item to the list of selected items; i.e. when selecting "Third", "Second" and "Fourth", the list of selected options is "Third, Second, Fourth".
Is there a way to configure Tom Select so that the selected items are sorted in the same order as in the dropdown list without having to move the caret around by hand? I.e. when selecting "Third", "Second" and "Fourth", the list of selected options is "Second, Third, Fourth".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's assume a
<select multiple>
containing four items: "First", "Second", "Third" and "Fourth".When selecting an item, the default behavior of Tom Select is to append the item to the list of selected items; i.e. when selecting "Third", "Second" and "Fourth", the list of selected options is "Third, Second, Fourth".
Is there a way to configure Tom Select so that the selected items are sorted in the same order as in the dropdown list without having to move the caret around by hand? I.e. when selecting "Third", "Second" and "Fourth", the list of selected options is "Second, Third, Fourth".
Beta Was this translation helpful? Give feedback.
All reactions