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

Add new prop disabledOptions #9

Merged
merged 7 commits into from
Oct 11, 2021

Conversation

trieuduongle
Copy link
Contributor

@trieuduongle trieuduongle commented Oct 11, 2021

I need to disable some options in the list because sometime, the option can be selected or not depending on outside conditions (for example: the option only can selected when the checkbox is checked...)

Closes #10.

src/lib/MultiSelect.svelte Outdated Show resolved Hide resolved
src/lib/MultiSelect.svelte Outdated Show resolved Hide resolved
readme.md Show resolved Hide resolved
@janosh
Copy link
Owner

janosh commented Oct 11, 2021

Thanks for this contribution. Looks like a new feature after addressing my comments.

@trieuduongle
Copy link
Contributor Author

PR updated, please check it @janosh :D

@janosh janosh changed the title Allow to specify options that need to be disabled Add new prop disabledOptions Oct 11, 2021
@janosh janosh added docs Improvements or additions to documentation enhancement New feature or request labels Oct 11, 2021
@janosh janosh merged commit b11eaa6 into janosh:main Oct 11, 2021
@janosh
Copy link
Owner

janosh commented Oct 11, 2021

Great work! Published as v1.1.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Allow to disable some options
2 participants