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

Disabled dropdown still opens the dropdown items list #844

Closed
victorfunes opened this issue Jul 7, 2023 · 3 comments
Closed

Disabled dropdown still opens the dropdown items list #844

victorfunes opened this issue Jul 7, 2023 · 3 comments

Comments

@victorfunes
Copy link

victorfunes commented Jul 7, 2023

Describe the bug
Disabling a dropdown changes the button status and the cursor pointer, but if you click on the button, the dropdown items list is still opening.

To Reproduce

  1. Create a dropdown with a dropdown list
  2. Disable the component <Dropdown disabled={true} ...> <Dropdown.Item ...>
  3. Click on the disabled button and the dropdown list will appear.

Expected behavior
Disabled dropdowns shouldn't open the dropdown items list.

Screenshots
Screenshot 2023-07-07 at 18 11 00

System information:

  • OS: Mac OS
  • Browser: Chrome
  • Version: 114.0.5735.198

Project information:

  • Tailwind: 3.2.4
  • Flowbite: 1.6.5
  • Flowbite React: 0.4.10
  • Type: CRA
@rluders
Copy link
Collaborator

rluders commented Jul 7, 2023

#840 was merged yesterday but has not been released yet. It should fix this issue.

@victorfunes
Copy link
Author

Thank you!

@victorfunes
Copy link
Author

Confirmed! It works with the new 0.4.11 release!

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

No branches or pull requests

2 participants