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

Checked Disabled Option should not be removable #5904

Open
SetupCoding opened this issue May 16, 2024 · 0 comments
Open

Checked Disabled Option should not be removable #5904

SetupCoding opened this issue May 16, 2024 · 0 comments
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@SetupCoding
Copy link

Are you reporting a bug or runtime error?

Bug

https://codesandbox.io/p/sandbox/react-select-v5-sandbox-forked-fpmwhp

Disabled + checked option should not be uncheckable in any way.
(Same as a disabled option is not "checkable" in any way.)

Reproduction:

The CodeSandbox features a checked disabled option ("Red") which cannot be unselected by clicking on it.

It can however be "unchecked" by pressing backspace in the input.
It can also be "unchecked" by clicking the MultiValueRemove button.
It can also be "unchecked" by selecting it with the arrow keys on the keyboard and either pressing space or enter.

However the disabled option cannot be "checked" again after that using the described methods above.

Summary

A disabled option cannot be checked, so it a disabled+checked option IMHO should also not be uncheckable.

Many thanks in advance for looking into it.

@SetupCoding SetupCoding added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

1 participant