Skip to content

The modal prop behaves differently for dialogs and popovers #4096

@yishayhaz

Description

@yishayhaz

The modal prop in Dialog has 3 possible values: true, false and trap-focus.
and the modal prop in Popover has the same 3 values, but they behave slightly differently: modal={true} in Dialog includes the behavior of trap-focus while in Popover, it does not.

Is this intentional? What should I do if I want both modal="trap-focus" and modal={true} behaviors in my Popover implementation?

Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: popoverChanges related to the popover component.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions