Skip to content
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

Open
algashev123 opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working state: need triage state need triage

Comments

@algashev123
Copy link

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:

  1. Open the showcase at the specified link;
  2. In the ngModel: Example pass HTML code input, delete the value through the cross;
  3. Enter something into the Editor component;
  4. Repeat step 2;
  5. Look at the result.

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
Снимок экрана 2024-10-09 в 17 06 48

Taiga UI version

4.15.0

Browser Used

Chrome

OS Used

macOS

@algashev123 algashev123 added bug Something isn't working state: need triage state need triage labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working state: need triage state need triage
Projects
None yet
Development

No branches or pull requests

1 participant