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
[TextareaAutosize] ResizeObserver loop completed with undelivered notifications (when resizing view with TextArea with scroll inside) #167
Comments
This comment was marked as resolved.
This comment was marked as resolved.
I have the same issue, when I add 'multiline' property to TextField. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Reopening this since we're getting more reports that seem to be related. Can anyone share a reproduction of the problem? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I was facing the same error, and also had I was unable to reproduce the error on CodePen, but hopefully this helps others! |
I can also confirm that using the I am using:
It's worth noting that the warning appears occasionally on page refresh (about 80% of the times). @ryan-saffer adding |
I could at least isolate the problem. In my case, it was lying into the main mustache template. This is a simplified version that I hope it helps you to reproduce the issue:
The warning stops appearing if I comment out the line
This is the client code, reduced to the minimum:
|
I also face this error. I use |
I am also encountering this issue. It seems like this error is already being handled in the test environment, so we may need to apply the error handling here in TextareaAutosize.tsx to all environments. |
I have exactly the same issue with MUI 5.14.11! The only thing I can add, it only happens when the breakpoint SM (600px width) is passed! |
I'm having the same issue. Actually the whole code needed to reproduce this issue is just:
Then put some long text in it and an error will appear whenever number of lines changes due to window resizing. Codesandbox to reproduce: It happens only when the whole window resizes, so it doesn't work on codesandbox and webpack gives us a nasty red overlay with this error but in this example, I attached to the |
I got the same problem with multiline TextInput. Reproduce by copying exact example code in MUI website: And the error message is:
|
Similar issue to this for me. If I add the maxRows prop, then the error no longer appears. |
Found a workaround using
|
I've faced the same problem and fixed with this code. `import { ResizeObserver } from '@juggle/resize-observer'; const ro = new ResizeObserver((entries, observer) => { // Listen for errors // Observe the body |
Also seeing this in JoyUI https://mui.com/joy-ui/react-textarea/ On MacOS Safari, repros with zooming in/out (Command +/-) |
This comment was marked as resolved.
This comment was marked as resolved.
That's no longer resizing in my case. |
This issue is intermittently ongoing. Using "@mui/material": "^5.15.7" |
The same error occurs when the placeholder does not fit in the input size. |
It appears that this issue may be related to mui/material-ui#37135 and/or mui/material-ui#38728 given the timing. It showed up in testing in mui/material-ui#40929 (comment). |
This was an issue for me too! For now I'm replacing my multiline |
I've also encountered the same issue while using the
Here is a simple codesandbox to reproduce. |
Hi team, were we able to get closer to the bottom of this issue? This has been flooding our error logs, particularly from users who are triggering resizes on the multiline |
Auto-sizing can be handled natively these days with |
What I meant to say was that it should be well-supported soon, and our new Textarea component (based on our new API design) wouldn't be roadmapped until the But I'll reopen for now and we'll chat internally next week. I'll update again next week after we chat. |
This comment was marked as resolved.
This comment was marked as resolved.
It may help, |
Any updates? |
I am getting the errors while using <TextField InputProps={{ multiline: true}} ... /> in 5.15.14. Does anyone know if upgrading to v6 or v7 would fix the issue? |
I'm getting the same error just if I use a native <textarea> is this a wepback, or a react problem ? |
My working workaround |
Steps to reproduce 🕹
Link to live example:
Steps:
Current behavior 😯
All seems to works fine at first view but sentry report a "ResizeObserver loop completed with undelivered notifications." error.
Expected behavior 🤔
No error should occur
Context 🔦
No response
Your environment 🌎
Search keywords:
The text was updated successfully, but these errors were encountered: