Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 7 forks source link

CharacterCount component - not resetting the red font colour after valid input #463

Closed arpakuma closed 1 year ago

arpakuma commented 1 year ago

Describe the bug CharacterCount component not resetting the error class once the input is edited.

To Reproduce Steps to reproduce the behavior:

  1. Go to CharacterCount component
  2. Enter characters beyond maxlength (suppose maxlength is 50), You see the error message in red- You have 4 characters too many.
  3. Now edit the characters to make it under maxlength (50)
  4. The text below should reset back to black colour.

Expected behavior When input characters are edited back to be inside maxlength limit, the text below should be displayed in Black colur (remove the error class)

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

daniele-zurico commented 1 year ago

closed by https://github.com/Capgemini/dcx-react-library/pull/471