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
Hey @SoulPancake thanks for the answer. That's what I'm using now but it's a dirty workaround and adds more useless DOM elements. Would be nice to have a prop on the popover either to stop the propagation or a callback of the click event so we can interact with it.
@synapse I don't think @SoulPancake's solution is dirty, per se. I generally discourage our devs from using stopPropagation(), as it often has unintended consequences when interacting with other libraries on the page, and it can break interactions with Blueprint's Overlay components (dialog, popover, tooltip, context menu, etc.). So, I think it's good practice to be specific in your outer <div> click handler callback and encode logic there about exactly which events you care about (rather than relying on a more opaque stopPropagation() in a child element, which is a little harder to reason about IMO). For this reason, I don't think I'll be adding any kind of stopPropagation?: boolean prop to the popover component.
Environment
Question
Is there a way to stop the event propagation when using the Popover2.
I need something like this where when I click the button would not trigger the parent click action:
Something like this breaks the popover from opening
This works but it's an extra step to add an extra tag everywhere
Is there a better way to do something like this?
The text was updated successfully, but these errors were encountered: