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

Is sortable multi-select supported? #24

Open
linhpham199 opened this issue Mar 30, 2021 · 2 comments
Open

Is sortable multi-select supported? #24

linhpham199 opened this issue Mar 30, 2021 · 2 comments

Comments

@linhpham199
Copy link

Hi,
For a huge number of options in the select list, I think a sortable feature would be useful. As I can see from the docs that the library doesn't support this feature itself; however, I wonder if it is possible to use this library with other library that supports sortable, for example react-sortable-hoc? Or if there is other possible implementation for sortable feature, I'd appreciate if you could show me.
Thanks in advance!

@based-ghost
Copy link
Owner

Hey @linhpham199 - I agree, that would be useful for multi-select scenarios. To clarify you mean sortable in the sense that the selected value tags are able to be re-arranged (e.g. drag-and-drop functionality), correct? I'll have to do a little investigation to see the optimal way to implement this, as it has the possibility to introduce significant bundle size if done quickly.

If you find any examples of packages that achieve something like this in a low-code, and/or optional dependency way let me know!

Thanks.

@linhpham199
Copy link
Author

linhpham199 commented Mar 30, 2021

Yes, drag-and-drop functionality is exactly what I meant, so the users can change the order of selected values in the list as they like.

And definitely if I find any good packages, I'll inform you. So far I've only seen react-sortable-hoc combining react-select to support drag-and-drop, and in this case react-sortable-hoc is optional dependency.

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