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
I have fixed this locally by patching Overlay. My solution works by propagating depth via context. Every overlay reads the current depth and then sets the new depth to +1. I then override handleDocumentClick and if a nested overlay was clicked, only close the descendants.
The source code for this patch is here. I currrently use the DOM to store data but I think another solution would be possible.
I'd be interested in making a PR with a better solution if wanted.
The text was updated successfully, but these errors were encountered:
💯 bug report! thanks for the screencast and patch link!
oof this is some nasty interaction, cuz each nested Overlay is in a separate Portal.
we already maintain Overlay.overlayStack with refs of nested Overlay components. I wonder if that could be used instead of context / DOM data?
Bug report
Steps to reproduce
Screencast of the issue on the docs here.
Actual behavior
All the popovers close.
Expected behavior
All popovers remain open.
I have fixed this locally by patching
Overlay
. My solution works by propagating depth via context. Every overlay reads the current depth and then sets the new depth to +1. I then override handleDocumentClick and if a nested overlay was clicked, only close the descendants.The source code for this patch is here. I currrently use the DOM to store data but I think another solution would be possible.
I'd be interested in making a PR with a better solution if wanted.
The text was updated successfully, but these errors were encountered: