Giter Club home page Giter Club logo

Comments (12)

subvertallchris avatar subvertallchris commented on May 13, 2024 8

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.

subvertallchris avatar subvertallchris commented on May 13, 2024 2

😮!

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.

dioklecijan avatar dioklecijan commented on May 13, 2024 1

Yep. Thanks!

from react-hook-form.

bluebill1049 avatar bluebill1049 commented on May 13, 2024

thanks @dioklecijan I will look into that and get it fixed :)

from react-hook-form.

bluebill1049 avatar bluebill1049 commented on May 13, 2024

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.

subvertallchris avatar subvertallchris commented on May 13, 2024

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.

bluebill1049 avatar bluebill1049 commented on May 13, 2024

@subvertallchris which comment & can you post the link of the CSB?

from react-hook-form.

subvertallchris avatar subvertallchris commented on May 13, 2024

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.

bluebill1049 avatar bluebill1049 commented on May 13, 2024

@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.

subvertallchris avatar subvertallchris commented on May 13, 2024

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.

bluebill1049 avatar bluebill1049 commented on May 13, 2024

@subvertallchris that's correct behaviour for reValidateMode: "onBlur". you want to change your mode to "onBlur"

from react-hook-form.

bluebill1049 avatar bluebill1049 commented on May 13, 2024

all good, sorry for the late reply. i was tired last night and went to bed.

from react-hook-form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.