Closed as not planned
Closed as not planned
Description
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:
- Go to https://mui.com/base-ui/react-focus-trap/#basics in Firefox browser
- Click on "Open" to open the Box.
- Scroll down and click anywhere.
- 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)