[Input] Failed to execute 'getComputedStyle' on 'Window' when suspense triggers on react 18 #32640
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: TextareaAutosize
The React component.
good first issue
Great for first contributions. Enable to learn the contribution process.
Duplicates
Latest version
Current behavior 😯
When React 18.0.0 triggers a Suspense that hides a mounted
<Input multiline />
,TextareaAutosize @ syncHeight
throws the following uncaught exception:It seems like the exception can be ignored, but react dev server shows the uncaught exception window.
Expected behavior 🤔
<Input multiline />
should not throw exceptions when it enters suspense.Steps to reproduce 🕹
Steps:
For future reference, sandbox code:
Context 🔦
When upgrading existing application to react 18, after changing from one route that has an
<Input multiline>
to another oneYour environment 🌎
No response
The text was updated successfully, but these errors were encountered: