Skip to content

The gray overlay when tap the react root container #13777

Closed

Description

@amikitevich

Do you want to request a feature or report a bug?
bug

What is the current behavior?

Since [email protected] seems that root element has onclick event handler with noop function.
In ios Safari/Chrome browsers html element has gray overlay when tap on it.

The current behavior is that the whole root is blinking when we tap on it.

The simple example to reproduce:
https://codesandbox.io/s/wyo8rlj1zk
The issue is reproducing only in fullscreen mode https://wyo8rlj1zk.codesandbox.io/
(root container is steel blue)

I suppose changes came from here:
#11927
https://github.com/facebook/react/pull/11927/files

and the issue can be related with:
mui/material-ui#11154
#12717

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16.5
ios 11.3/12 Safari/Chrome

Activity

  1. added 2 commits that reference this issue on Oct 4, 2018
    c1cba56
    45578e6
  2. philipp-spiess commented on Oct 4, 2018

    @philipp-spiess
    Contributor

    @amikitevich Thanks for reporting this. I agree that we shouldn't add onclick handler to React roots. Seems that we did not spot this regression in manual tests because of Safari hiding tap highlights when an element is bigger than the viewport 🤔. Check out #13778.

  3. amikitevich commented on Oct 5, 2018

    @amikitevich
    Author

    @philipp-spiess very appreciated for your explanation, help and the fix. Thank you! 👍

  4. added a commit that references this issue on Oct 9, 2018
    f47a958
  5. added a commit that references this issue on Oct 22, 2018
    e34b86e
  6. added a commit that references this issue on Jan 23, 2019
    c747739
  7. added a commit that references this issue on Jun 25, 2026
    f9de370
  8. added a commit that references this issue on Sep 9, 2026
    390de66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions