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

keepSelectionDuringSearch flag #270

Merged
merged 4 commits into from
Dec 13, 2024
Merged

keepSelectionDuringSearch flag #270

merged 4 commits into from
Dec 13, 2024

Conversation

petran123
Copy link
Contributor

Added keepSelectionDuringSearch flag, which, when used along with keepSelectionInList = true, will also keep the selection in the list while searching.

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelecte ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 10:05am

@mskocik
Copy link
Owner

mskocik commented Dec 12, 2024

I am curious about your use case. Why do you want to see something, that's already selected?

@petran123
Copy link
Contributor Author

I have multi select elements with high double digit options and it can get tedious for users to have to scroll to toggle multiple scattered options off. Especially in cases where options are not sorted alphabetically but based on ID or some other factor.

@mskocik
Copy link
Owner

mskocik commented Dec 12, 2024

Makes sense... But can you rework it to extend SearchProps instead of adding another property? That will be a better place for it.

@petran123
Copy link
Contributor Author

Updated.

@mskocik mskocik merged commit d2ff822 into mskocik:master Dec 13, 2024
1 check passed
@mskocik
Copy link
Owner

mskocik commented Dec 13, 2024

I changed the name of it to keepSelectionInList. Released in 5.1.0

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

Successfully merging this pull request may close these issues.

2 participants