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
If you have a popover with a second popover mounted inside it (I realise this is a rogue place to start), when a user interacts outside both popovers, it closes the parent popover.
We'd ideally like it to just close the child popover (like popping the last thing off the stack). I was hoping onInteractOutside would help me here, but sadly the parent popover gets the event first and so closes the whole thing before the child can 'intercept'.
My only idea so far would be for the child popover to somehow register its open-ness with the parent popover, so the parent knows it shouldn't close, but that feels a bit jank.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If you have a popover with a second popover mounted inside it (I realise this is a rogue place to start), when a user interacts outside both popovers, it closes the parent popover.
We'd ideally like it to just close the child popover (like popping the last thing off the stack). I was hoping
onInteractOutside
would help me here, but sadly the parent popover gets the event first and so closes the whole thing before the child can 'intercept'.My only idea so far would be for the child popover to somehow register its open-ness with the parent popover, so the parent knows it shouldn't close, but that feels a bit jank.
Beta Was this translation helpful? Give feedback.
All reactions