mui / mui/material-ui

[useMediaQuery] Safari scrollbar unstable

Open
#22,812 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

external dependency hook: useMediaQuery type: bug
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 😯

2020-09-29 15 40 56

Expected Behavior 🤔

The menu should toggle once only when the menu icon is clicked.

Steps to Reproduce 🕹

Steps:

  1. Set display resolution to "Looks like 1280x800"
  2. Make the Safari window fill the entire laptop screen
  3. Open Safari 14.0+ on MacOS
  4. 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:

Screen Shot 2020-09-29 at 3 54 30 PM

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.