Skip to content

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

@arpakuma

Description

@arpakuma

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions