react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Checked Disabled Option should not be removable

Open SetupCoding opened this issue 9 months ago • 0 comments

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 avatar May 16 '24 10:05 SetupCoding