这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(MultiSelect): prevent toggling disabled option when using toggle all #7882

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mch-outsight
Copy link

Related issue: #7881

Context

This PR intends to fix disabled options being updated when using the "toggle all" checkbox from the MultiSelect component.

Proposed solution

When onToggleAll event occurs, we should always include the disabled options when updating the modelValue, either when selecting all or unselecting all.

Testing

I've added some unit tests using the existing code structure as much as possible ❤️

Additional notes

I noticed there is no documentation about disabled options in the current MultiSelect docs, I'd be happy to add some in the Disabled section if needed.

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.

1 participant