Skip to content

Ability to "click through" the backdrop of non-modal Popup parts #2128

Open
@mxmason

Description

@mxmason

Feature request

Summary

When using non-modal popups, some authors may want the ability to click through them, allowing the user to both close the popover and activate another control in one click.

Example

I built a demo of my desired behavior on Stackblitz because I couldn't get the CSS on CodeSandbox to hook into [data-floating-ui-inert], for some reason. While this CSS workaround is doable, it relies on figuring out some DOM that appears to be rendered by Floating UI.

Motivation

This is both a desired behavior for my use case as well as (IMO) the expected behavior when a Popup-like element is not modal. If a popup is not modal, then the user shouldn't be prevented from activating an outside control with their pointer while that popup is open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions