-
Notifications
You must be signed in to change notification settings - Fork 7
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
🐞 - TuiEditor: the value in the component is incorrectly updated when it is passed as an empty string using formControl
#1522
Comments
I'm observing the same issue. Looks like it is caused by the usage of
The property is set on the component initialization and passed to the
If component has any value on initialization, then the editor will display it. It is possible to reset the content only once through external formControl. Other attempts will not clean the editor. Steps to reproduce are the following:
Another issue probably related to it is that |
Hello! Is there any update on this issue? |
I'll take this issue on Monday |
Reproduction url
https://taiga-family.github.io/editor/starter-kit?ngModel=&placeholder=Test
Description
An empty string is incorrectly processed by the TuiEditor component. Playback Steps:
ngModel: Example pass HTML code
input, delete the value through the cross;Expected behavior:
The component has cleared, there is no value in it and the placeholder is visible.
Current result:
The text in the input is not cleared, the placeholder is layered on the text
Taiga UI version
4.15.0
Browser Used
Chrome
OS Used
macOS
The text was updated successfully, but these errors were encountered: