TypeError with validationDebounceOptions
See original GitHub issueI’ve stumbled over something when setting the Form option validationDebounceOptions.leading
to false to start validating after I’ve entered most of the field data.
When submitting the form, I receive the following error:
Form.js:302 Uncaught TypeError: Cannot read property 'then' of undefined
When I submit the form a second time, it just works. I’m not sure if I’m just doing something wrong or if this is actually a bug. Setting leading
to true (default value), everything works fine.
I’m running on v 1.20.5
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
debounce react-jsonschema-form validate function
I have a functional component that's using react-jsonschema-form , and I need to debounce the function that it runs to validate itself.
Read more >Validation chain order · Issue #851 · jquense/yup
When I finally got it to work, after meeting all previous validations in a sequence, they wouldn't validate as true until the debounced...
Read more >Angular Reactive Forms: Tips and Tricks
We can tell Angular that we only want to run the validation function upon submit or blur . As we saw, the default...
Read more >Lodash _.debounce() Method
When the leading and the trailing options are true, then func is called on the trailing edge of the timeout if and only...
Read more >jQuery throttle / debounce: Sometimes, less is more!
jQuery throttle / debounce allows you to rate-limit your functions in multiple useful ways. Passing a delay and callback to $.throttle ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now we have new
showErrorsOnBlur
option which istrue
by default (It’s the new default behavior of the library).showErrorsOnChange
is nowfalse
by default.The errors on
validate()
are now NOT shown by default.The errors can be shown anyway using
validate({ showErrors: true })
but now there is more control over the errors also usingfield.showErrors()
.Let me know if you encounter some issues, thanks.
i just upgraded and gave it a super quick test and it works like a charm! Keep up the great work! 🙌