Popover / DropdownMenu: Make click handling more friendly to consumers
Opened this issue · 0 comments
daneah commented
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 stopPropagation
s or preventDefault
s 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.