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

Input validation not working as expected #74

Open
Marina-L-Stoyanova opened this issue May 21, 2024 · 0 comments
Open

Input validation not working as expected #74

Marina-L-Stoyanova opened this issue May 21, 2024 · 0 comments
Labels
🐛 bug Something isn't working forms

Comments

@Marina-L-Stoyanova
Copy link

Description

I want to validate an input on Blur and if it is invalid I want a validation message to be shown. (I'm calling ForceUpdate to repaint the DOM).
image

Steps to reproduce

  1. Open this sample : React Validation Sample
  2. Run the sample.
  3. Write something in the first input.

Result

When ForceUpdate is called the value of the input is deleted and no validation message is shown.

Expected result

The DOM should be repainted and the validation should work. The value should not be deleted.

Attachments

Attach a sample if available, and screenshots, if applicable.

@Marina-L-Stoyanova Marina-L-Stoyanova added 🐛 bug Something isn't working forms labels May 21, 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 forms
Projects
None yet
Development

No branches or pull requests

1 participant