You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 orpreventDefault
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.
The text was updated successfully, but these errors were encountered: