yanickrochon / jquery.uix.multiselect

Completely rewritten, multiselect widget with a more concise API
http://mind2soft.com/labs/jquery/multiselect/
MIT License
139 stars 62 forks source link

Drag and drop in selected list to reorder not working #112

Open amberdiehl opened 5 years ago

amberdiehl commented 5 years ago

Hi,

I successfully integrated your older version plugin and the drag and drop reordering of the selected list was/is working. But thought maybe I should upgrade. I can drag and drop to select and deselect options but cannot drag and drop to reorder selected items. Thoughts as to what might be causing this?

Thanks in advance, Amber

yanickrochon commented 5 years ago

Hi, the drag and drop for reordering works on the selected side, not on the available side. See sample page for more information.

The reason for this is simple; the available side has option group support, and this would've unnecessarily complicated the component. So the available side is sorted according to a function, while the selected side use the same function by default, but allows user reordering.

If you think about it, users don't need to reorder available items, only the ones they select.

amberdiehl commented 5 years ago

Thanks for the speedy response! I wrote: ..."but cannot drag and drop to reorder selected items". Any thoughts of why it's not be working?

Agree reordering available items makes no sense. :)

And thanks for the link to your sample page--that may help me figure it out.