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

setDisabledOptions removes current selection #62

Closed
kurkle opened this issue Sep 11, 2021 · 2 comments
Closed

setDisabledOptions removes current selection #62

kurkle opened this issue Sep 11, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@kurkle
Copy link

kurkle commented Sep 11, 2021

Context

Multiple virtual selects for same set of "things", only allowing a "thing" in one select. So when a value changes in a selects, that value is disabled from other selects. Selecting single value.

Current behavior

Previous selection is lost, even if its not in the disabled list.

Expected behavior

Disabled status of the elements is updated, selection is preserved.

@sa-si-dev
Copy link
Owner

@kurkle, thanks for letting me know it. I will check and fix them in the future release.

@sa-si-dev sa-si-dev self-assigned this Sep 17, 2021
@sa-si-dev sa-si-dev added the enhancement New feature or request label Sep 17, 2021
@sa-si-dev
Copy link
Owner

@kurkle, this feature has been implemented in the release v1.0.17

Now we can keep the selected values by passing the second argument as true setDisabledOptions(disabledOptions, true)

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

No branches or pull requests

2 participants