Skip to content

Modal: have an option to keep multiple non-nested modals open #56857

@sandymcfadden

Description

@sandymcfadden

What problem does this address?

In #51602 it seems this change made it not possible to have multiple modals open if they are not nested within each other.

We use WordPress components in a project outside of WordPress, the Day One Web Client, and have built our own modal handling infrastructure to open and close modals using a global modal state. We end up having multiple modals open that are not nested in each other, and with this when one closes they all close and that is not our intention.

What is your proposed solution?

It would be great to have a way to opt out of this behavior, maybe with a boolean prop on the Modal component.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions