You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The gray overlay when tap the react root container #13777
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.
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
@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.
Activity
Don’t add onclick listener to React root
Don’t add onclick listener to React root
philipp-spiess commentedon Oct 4, 2018
@amikitevich Thanks for reporting this. I agree that we shouldn't add
onclickhandler 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.amikitevich commentedon Oct 5, 2018
@philipp-spiess very appreciated for your explanation, help and the fix. Thank you! 👍
Don’t add onclick listener to React root (#13778)
Don’t add onclick listener to React root (react#13778)
Don’t add onclick listener to React root (react#13778)
Don’t add onclick listener to React root (react#13778)
Don’t add onclick listener to React root (react#13778)