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

[bug]: Checkbox not clickable in CommandItem #4475

Closed
2 tasks done
Bread-Ch4n opened this issue Aug 1, 2024 · 2 comments
Closed
2 tasks done

[bug]: Checkbox not clickable in CommandItem #4475

Bread-Ch4n opened this issue Aug 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Bread-Ch4n
Copy link

Describe the bug

As soon as I add a checkbox to and CommandItem element its not clickable.
If u use tab to select the checkbox and press space it activates. U just can't click with a mouse

Affected component/components

Checkbox, Command (CommandItem)

How to reproduce

  1. Put a checkbox inside CommandItem and try clicking it

Codesandbox/StackBlitz link

https://codesandbox.io/p/devbox/kind-browser-hkkv8w?workspaceId=ded83c22-675d-472a-b064-f1637d1bca21

Logs

No response

System Info

Firefox

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@Bread-Ch4n Bread-Ch4n added the bug Something isn't working label Aug 1, 2024
@ItayBenAmi
Copy link

Hi, ran into this as well. It appears there is already an open issue on the matter as well as a pr with a suggested fix.

tl;dr: you can change data-[disabled] in CommandItem to data-[disabled='true'], which should work for your example.

@Bread-Ch4n
Copy link
Author

Thanks. Saw the pr #2945 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants