question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Re-validate on change

See original GitHub issue

What kind of issue is this? (put ‘x’ between the square brackets)

When the error is triggered and then you just paste valid input, the field is not re-validated until you actually type something. May be it’s not a big deal with paste, but I’m currently using bootstrap datepicker and after if pastes the valid date, the error does not go away, again until you actually enter something or submit the form.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
marcandrecommented, Jul 12, 2016

Oh, I just re-read your report.

There is no bug with pasting text, just a bug with bootstrap datepicker. It’s actually a bug of the bootstrap datepicker that does not fire an input event even though it should.

I’m travelling at the moment, so not much time to check it out, but I’ll post a PR for them when I can, if you or others don’t in the meantime.

PS: Don’t use reset or whatever, just trigger('input') yourself to circumvent the bug.

0reactions
marcandrecommented, Oct 20, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

ReValidateMode 'onChange' doesn't validate after changes?
reValidateMode means after submit, validation will trigger on change. let me know if there are any keywords we can emphasis to improve the...
Read more >
Automatic Revalidation - SWR
Revalidate on Focus#. When you re-focus a page or switch between tabs, SWR automatically revalidates data. This can be useful to immediately synchronize...
Read more >
Revalidate an element when changed programmatically with ...
There is a field, "from", whose value is linked to another field, "to". How do I get the field "to" to revalidate once...
Read more >
useForm | React Hook Form - Simple React forms validation
Validation will trigger on the blur and change events. reValidateMode: onChange | onBlur | onSubmit = 'onChange' ! React Native: Custom register or...
Read more >
Validate a Change Set - Salesforce Help
You can validate a change set without deploying changes. By validating you can view the success or failure messages you would receive with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found