enterprise icon indicating copy to clipboard operation
enterprise copied to clipboard

Validation/Textarea: Validation breaks when disabling and enabling a Textarea

Open radovaniljic opened this issue 2 years ago • 0 comments

Describe the bug In a textarea, if you trigger a validation error (e.g. by leaving a required field empty) and then disabling and enabling it again, the validation breaks and the error doesn't disappear even when the field is valid.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/ids-quick-start-1411-6q3is3?file=src/app/app.component.html
  2. Focus the textarea and then click anywhere outside it to remove the focus. The validation error should now should up.
  3. Click the "Toggle" button and confirm the textarea is disabled.
  4. Click the "Toggle" button again to enable the textarea.
  5. Start typing in the textarea and notice that the validation error doesn't disappear.

Expected behavior The validation error should disappear.

Version

  • ids-enterprise-ng: 14.1.1
  • ids-enterprise: 4.65.1

Screenshots textarea_validation

radovaniljic avatar Aug 24 '22 08:08 radovaniljic