-
Notifications
You must be signed in to change notification settings - Fork 2k
Allow popups within popups #7451
Copy link
Copy link
Open
Labels
Description
- related to Allow opening multiple popups #5758
- and Fix: prevent calendar popup from closing on dropdown change #7409
- Popups in popups #4463
Should we store popup state per layer instead of per viewport?
This should allow having popups-in-popups.
Popups would register itself as child/sub layers of the buttons layer.
On clicks a popup would only close if the click was clicked_elsewhere for itself and any of it's child layers.
This would also fix the bug where popups can suddenly be behind their parents layer.
To ensure that there is never more than a single "root popup", we close the popups on all layers that aren't parent layers of the opening popup.
For this we would need to change child layers a bit though:
- allow child layers with different Order than their parent
- OR popups are always on the same Order as their parent (I think I actually prefer this)
- allow multiple levels of sub layer nesting
Reactions are currently unavailable