[useMediaQuery] Safari scrollbar unstable
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯

Expected Behavior 🤔
The menu should toggle once only when the menu icon is clicked.
Steps to Reproduce 🕹
Steps:
- Set display resolution to "Looks like 1280x800"
- Make the Safari window fill the entire laptop screen
- Open Safari 14.0+ on MacOS
- Go to https://material-ui.com/getting-started/installation/ and click the menu icon in the top left
Context 🔦
I cannot reproduce this issue on the homepage (https://material-ui.com), only on the documentation pages.
I cannot reproduce this bug in Firefox, even at the same resolution and window width that the error occurs at in Safari.
The bug only happens when the Safari window is a specific size:
Your Environment 🌎
| Tech | Version |
|---|---|
| Browser | Safari 14.0 |
| etc. | macOS Catalina 10.15.7, 2560x1600 display resolution, Display scaling set to "looks like 1280x800" (2x) |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in Safari 14 on macOS with the documented window size and display scaling, then inspect the useMediaQuery entry point and the menu on the documentation installation page. Compare that page with the homepage, where the issue is not reproduced. Done means clicking the menu icon toggles it once rather than repeatedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100