Skip to content

Allow popups within popups #7451

@lucasmerlin

Description

@lucasmerlin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Next up

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions