Comments (12)
Oh man, nothing to apologize for! My day is just starting as yours is ending. This was a great turnaround time. FYI I've already got your library in production and it's going to be part of every form in the project, it's providing a great value already. Thank you for all your hard work.
from react-hook-form.
😮!
I saw reValidationMode
and assumed from the lack of plain validationMode
that it handled 100% of the operation. Thanks for the clarification!
from react-hook-form.
Yep. Thanks!
from react-hook-form.
thanks @dioklecijan I will look into that and get it fixed :)
from react-hook-form.
This issue has been fixed https://github.com/bluebill1049/react-hook-form/releases/tag/v3.0.3
https://codesandbox.io/s/928po918qr
from react-hook-form.
I'm finding that onBlur
with Yup doesn't work until you submit the form once. You can see it in the codesandbox in @bluebill1049's comment above. Is this expected?
from react-hook-form.
@subvertallchris which comment & can you post the link of the CSB?
from react-hook-form.
You can use this https://codesandbox.io/embed/react-hook-form-validationschema-vk3s4?fontsize=14&hidenavigation=1&theme=dark. It's the CSB from your very last comment before now with reValidateMode: 'onBlur'
. You'll see that it doesn't run validations at all until you submit the form but then it runs correctly.
from react-hook-form.
@subvertallchris i am going to sleep now, can you make sure use the latest version? in case that's the fix.
from react-hook-form.
Updated it to use the current version, which I'm also running locally -- no change. Thanks for quick reply and all your work on this library, it's excellent!
from react-hook-form.
@subvertallchris that's correct behaviour for reValidateMode: "onBlur". you want to change your mode to "onBlur"
from react-hook-form.
all good, sorry for the late reply. i was tired last night and went to bed.
from react-hook-form.
Related Issues (20)
- issue: Changing nested defaultValues before rendering Controller causes error: Cannot set properties of undefined (setting 'mount') HOT 1
- issue: useFormContexts error object empty desipite validation invalidating the form HOT 2
- issue: formState: { errors } and config: { errors } (infinite rerendering) HOT 3
- Values are out of sync when a field disabled attribute depends of another field value HOT 1
- issue: [DRAFT] using the new version of the library crashes the App component HOT 1
- v6 React Dependency Query HOT 2
- issue: formState: { errors } and config: { errors } (infinite rerendering) HOT 1
- issue: Dirty array fields get reset even though `keepDirtyFields: true` HOT 2
- issue: field named with dot like settings.default_port cause isValidating stuck to true HOT 1
- issue: form.reset(values) ignores undefined values HOT 2
- issue: when setting validation to min: 2 value 0 is ignored
- issue: bad setState() call inside `Controller` error when early returning and accessing `formState.isValid`
- issue: Problem with focus precedence HOT 2
- Registering nested objects changes default values
- issue: (in my project only) infinite rerender when using errors from formState and errors in hook configuration HOT 5
- issue: when use formState.isValid, fieldArray replace will make resolver call many times HOT 1
- RHF is triggering 3 times as many rerenders on validation HOT 4
- issue: removing last number with trailing zeros deletes all the right side zeros, when used with `react-number-format` HOT 1
- issue: formState isDirty breaks under certain conditions
- issue: `useWatch` return value does not match `watch` when used with `useFieldArray` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-hook-form.