-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invariant Violation Maximum update depth exceeded
on TextareaAutosize with Meiryo font in Firefox
#17385
Comments
It seems that the bug occuring conditions are limited.
|
Investigation an issue related to this. |
Could you confirm that this diff solves the problem? diff --git a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js
index 6634f0e6b2..6ac6e9742e 100644
--- a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js
+++ b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js
@@ -21,6 +21,8 @@ const styles = {
height: 0,
top: 0,
left: 0,
+ // Create a new layer, increase the isolation of the computed values
+ transform: 'translateZ(0)',
},
}; I could reproduce the problem on Firefox v69 with a zoom of 133%. Otherwise, removing the possibility for an infinite rendering loop, as proposed in this comment #16685 (comment) sounds good to me too. |
I tried this diff. |
Nice, do you want to submit a pull request? @bitoverflow would it solve your issue too? |
I think it is better that material-ui library includes this bug fix. |
@hatanaka-akihiro agree, do you want to make it happen? |
@oliviertassinari Yes. |
The patch did not solve it for us, but are starting to see a pattern on what is triggering it
..strange things |
@bitoverflow Thanks, in this case, I think that we can also remove the infinite loop potential with #16685 (comment). I'm tired of seeing this class of issue report. It seems that layout text measurement is instable, we can accept it and move on. |
A user of mine is also having this issue, they are on Firefox 69, newish macbook air. |
Are now also seeing this in Internet Explorer 11. TextField with multiline, rows 3, inside a Dialog. Crashes when user fills the area with text and it needs to grow. Stabilize by removing the rows parameter |
Does somebody want to work on the problem and submit a pull request? |
I am still seeing this in 4.5.0 with IE11 |
Solving IE 11 wasn't an expectation of the issue nor the pull request. |
@bitoverflow If you have a reproduction (the sources maybe?), we would appreciate it. This issue was about Firefox. |
@oliviertassinari Created a new issue #17672 with demo |
Current Behavior 😯
This bug is similar with #16685.
With the specific font (Meiryo font), bug has not been fixed.
Firefox (69) NG
Chrome (76) OK.
Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-c69fh
Your Environment 🌎
The text was updated successfully, but these errors were encountered: