-
Notifications
You must be signed in to change notification settings - Fork 272
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: Cannot read properties of null (reading 'replace') #6472
Comments
Hello @C3ntraX , As you can see in the documentation here https://sap.github.io/ui5-webcomponents/main/playground/components/TextArea/, Best regards, |
Its important, that the value null is valid, because if you are using librarys that resets the values, then there be shouldn't thown an error. Therefore your solution causes the library to throw errors because its not API Standard |
You you pls discuss this intern? Because other inputs like the Input accepts null. @Lukas742 |
Describe the bug
If you reset the textarea with the value null, then you'll get the error: Cannot read properties of null (reading 'replace')
Isolated Example
https://codesandbox.io/s/silly-sid-9ut2y7?file=/src/App.js
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Its important, that the value null is valid, because if you are using librarys that resets the values, then there be shouldn't thown an error.
My library is Formik, a very popular library
Screenshots
If applicable, add screenshots to help explain your problem.
UI5 Web Components for React Information
@ui5/webcomponents
version:@ui5/webcomponents-react
version:Operating System:
Browser:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: