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

Select options by id #555

Merged
merged 4 commits into from
Aug 2, 2024
Merged

Conversation

deh-code
Copy link
Contributor

Fixes #543

Now the component should support options with duplicated values.
Selected options are now fetched and stored by id.

I did my best to maintain API back-compatibility.
Especially the setSelected method, it still support the "set by value" approach: simply it first try to fetch the option by id, if no option with the given id is found, try to fetch all the options with given value.

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.

Working Select Fails when Converted to SlimSelect - BUG IS: Doesn't handle duplicated values
3 participants