-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs][base] FocusTrap basic demo not focusing back to the Box in Firefox #37866
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
browser: FirefoxAffects or fixes behavior in Mozilla Firefox.Affects or fixes behavior in Mozilla Firefox.docsImprovements or additions to the documentation.Improvements or additions to the documentation.external dependencyBlocked by external dependency, we can’t do anything about it.Blocked by external dependency, we can’t do anything about it.package: @mui/baseSpecific to @mui/base (legacy).Specific to @mui/base (legacy).scope: focus trapChanges related to the focus trap.Changes related to the focus trap.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Metadata
Metadata
Assignees
Labels
browser: FirefoxAffects or fixes behavior in Mozilla Firefox.Affects or fixes behavior in Mozilla Firefox.docsImprovements or additions to the documentation.Improvements or additions to the documentation.external dependencyBlocked by external dependency, we can’t do anything about it.Blocked by external dependency, we can’t do anything about it.package: @mui/baseSpecific to @mui/base (legacy).Specific to @mui/base (legacy).scope: focus trapChanges related to the focus trap.Changes related to the focus trap.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://mui.com/base-ui/react-focus-trap/#basics
Steps:
Current behavior 😯
After following the steps, the focus in the Firefox browser returns to the code snippet of the demo instead of the demo box.
Expected behavior 🤔
After following the steps, the focus should return to the Box demo instead of the code snippet in the Firefox browser.
Context 🔦
Originally reported in #37330, it was mistakenly assumed that two separate issues were related to each other. However, they are unrelated. I created this one specifically addressing the Focus trap problem, while keeping the original issue for the Base UI Modal demo. Please note that the issue only occurs in the Firefox browser; it works fine in Google Chrome.
Your environment 🌎
npx @mui/envinfo