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

Popover / DropdownMenu: Make click handling more friendly to consumers #747

Open
daneah opened this issue Apr 25, 2024 · 0 comments
Open

Comments

@daneah
Copy link
Member

daneah commented Apr 25, 2024

The problem

Popovers and dropdowns currently listen for clicks and determine whether the click target is within the body of the component to see if the component should close.

The mechanism these components use to do this cause consumers grief when they also have more complex click-handling scenarios, such that they need to use stopPropagations or preventDefaults to get things working. It would be ideal to ease this burden so they aren't putting bandaids on top of bandaids.

The solution

Perform click target detection in a more collaborative manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant