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]: Any additional button inside the DropdownMenuTrigger doesn't work #6130

Open
2 tasks done
nikolinaPetrusic99 opened this issue Dec 19, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@nikolinaPetrusic99
Copy link

Describe the bug

I'm developing a react website where I have two filters: a date filter and status filter. For opening the dropdowns I'm using the Dropdown Menu component. Our designer wants to add an X button anytime the user chooses anything other then the default value. This button should then reset the value back to default, but onClick doesn't work, anytime I click on the X it opens the dropdown contents, EXCEPT if I quickly click on it multiple times. For smaller screens like Mobile and Tablets I switch the view to the Sheet component where the X button DOES work as it should.

Posnetek zaslona 2024-12-19 124616

Affected component/components

Dropdown Menu

How to reproduce

  1. Create a DropdownMenu component
  2. Inside the DropdownMenuTrigger add a text
  3. Add a button with a onClick function

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Microsoft Window 11, Visual Studio Code, Microsoft Edge, React Typescript

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@nikolinaPetrusic99 nikolinaPetrusic99 added the bug Something isn't working label Dec 19, 2024
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

1 participant