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

[Feature Request] Allow duplicate selection for multiple #207

Closed
fkrauthan opened this issue Oct 30, 2023 · 1 comment
Closed

[Feature Request] Allow duplicate selection for multiple #207

fkrauthan opened this issue Oct 30, 2023 · 1 comment

Comments

@fkrauthan
Copy link

I have a use-case where I plan to use svelecte for a check point selector (selecting multiple locations). However the user should be able to select the same node multiple times (e.g. City A -> City B -> City A -> City C). Is there any way to allow that with svelecte?

@mskocik
Copy link
Owner

mskocik commented Oct 31, 2023

Svelecte is designed to be used as multiselect, so this use-case is impossible. You cannot select the same item in multiselect multiple times. Selected items are tracked by "value" property, which means you can't have the same value selected multiple time.

This can't be implemented without huge code changes that are simply not worth the it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants