Skip to content

[docs][base] FocusTrap basic demo not focusing back to the Box in Firefox #37866

Closed as not planned
@ZeeshanTamboli

Description

@ZeeshanTamboli

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example: https://mui.com/base-ui/react-focus-trap/#basics

Steps:

  1. Go to https://mui.com/base-ui/react-focus-trap/#basics in Firefox browser
  2. Click on "Open" to open the Box.
  3. Scroll down and click anywhere.
  4. It is focused back to the code snippet rather than the demo.

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
Firefox Browser version 115.0.1 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser: Firefoxbug 🐛Something doesn't workcomponent: FocusTrapThe React component.docsImprovements or additions to the documentationexternal dependencyBlocked by external dependency, we can’t do anything about itpackage: base-uiSpecific to @mui/base

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions