Skip to content

Overlay not containing focus while using useModalOverlay #5181

Open
@ritz078

Description

@ritz078

Provide a general summary of the issue here

When using the example mentioned in https://react-spectrum.adobe.com/react-aria/useModalOverlay.html#example, the focus is not contained in the overlay.

🤔 Expected Behavior?

The overlay should be auto focused and the focus should be contained within it.

😯 Current Behavior

The focus is not contained within the overlay.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/s/cool-scooby-nswgnw?file=/src/App.js

Version

3.28.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    • Status

      🩺 To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions