-
Notifications
You must be signed in to change notification settings - Fork 407
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
Disabled options can be selected by pressing Tab key #835
Comments
Hi @taimoor-aslam, thanks for the report. Can you please provide a sandbox and steps to repro the issue you're describing? I'm not seeing the behavior you describe. |
I found the similar bug, disabled options can be selected using the arrowDown key and arrowUp key then enter. I manage to avoid this issue by adding 'disabled: true' in my options data on a disabled field. e.g const countries = [{ name: 'USA', disabled: true }, ... ]. I don't know if this is an intended way of doing it. |
@ericgio here a reproduction of the issue: Version
Sandbox: https://codesandbox.io/p/sandbox/select-disabled-options-ontab-8kq3mn?file=%2Fsrc%2FApp.tsx%3A8%2C42 Expected BehaviorOptions not selectable when accepting the hint on Tab. Actual BehaviorThe options are selectable on Tab even if they are disabled. |
Hello, I grasp the concept of utilizing disabled options, acknowledging that these options cannot be selected through a mouse cursor. Nevertheless, they remain "selectable" when pressing the Tab key.
The text was updated successfully, but these errors were encountered: