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
Originally posted by AlexKDawson March 6, 2023
So I have nested Traps, both with the prop clickOutsideDeactivates. However when I click outside both traps while the inner one is active only the inner one closes.
Is there a pattern I can use to close both traps if the click is outside of both, or just the inner trap if the click is outside the inner trap but within the outer one?
These new hooks should help with this use case.
The text was updated successfully, but these errors were encountered:
Discussed in #942
Originally posted by AlexKDawson March 6, 2023
So I have nested Traps, both with the prop
clickOutsideDeactivates
. However when I click outside both traps while the inner one is active only the inner one closes.Is there a pattern I can use to close both traps if the click is outside of both, or just the inner trap if the click is outside the inner trap but within the outer one?
These new hooks should help with this use case.
The text was updated successfully, but these errors were encountered: