-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
TextArea Component error text is not removed when error is fixed #6392
Comments
Could you link to a reproducible example on code sandbox? |
I tried... But the CodeSandbox keeps saying:
https://codesandbox.io/s/carbon-components-react-8ssn2?file=/src/index.js |
Same just copying this: |
Hmm, I'm able to get it working and not able to see any issues. Could possibly be a local style issue? https://codesandbox.io/s/carbon-components-react-x39gr?file=/src/index.js |
Here is a working case: https://codesandbox.io/s/carbon-components-react-jrehw?file=/src/index.js It shows the error. Type more than 20 chars and then see the error, backspace and the error should clear but the text is still there. |
Maybe try Safari? Maybe it is a specific browser bug. I am using latest Safari which should be supported by carbon so I assume it is already in your test flow. |
Ahh, that's it, seems like it's a safari-only bug. Seems like the state value is doing something strange in the browser, because if you click into the code editor when both texts show up, the error text disappears after a few seconds |
Yeah. I noticed if you do something to cause safari to alter the draw like change tabs or move window it will cause it to update. Not sure if just safari. We mostly test on safari since it’s the most problematic for Mac. Maybe if the entire text wrapper was 100% or had something to trick safari intro redrawing the area might fix it. |
It seems like if I set |
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Error text under TextArea is not removed when normal text is placed back on top of it (helper text).
Steps to reproduce the issue
Aspera
The text was updated successfully, but these errors were encountered: