Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amberdiehl opened this issue Jun 29, 2019 · 2 comments
Open

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

amberdiehl opened this issue Jun 29, 2019 · 2 comments

Comments

@amberdiehl
Copy link

amberdiehl commented Jun 29, 2019

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
Copy link
Owner

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
Copy link
Author

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.

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

No branches or pull requests

2 participants