Giter Site home page Giter Site logo

Comments (8)

hanrok avatar hanrok commented on July 1, 2024 1

Thanks for the quick reply @bluebill1049 ! Very appreciate your responses in issues.
I did use RHFInput, and still the behaviour is the same. I updated the codesandbox, just forgot to save 😩, sorry about that.

from input.

bluebill1049 avatar bluebill1049 commented on July 1, 2024 1

Ok I will take a look when I am reaching home.

from input.

bluebill1049 avatar bluebill1049 commented on July 1, 2024 1

@hanrok you saw my codesandbox works right?

you are just missing pass down the props :)
<RHFInput unregister={unregister} />

from input.

hanrok avatar hanrok commented on July 1, 2024 1

You are right, it's work! thanks!
Love this library. Maybe it will be nice to add this to the documentation because I didn't find it myself.

Thank you again 👍 😄

from input.

bluebill1049 avatar bluebill1049 commented on July 1, 2024

lol it's an empty codesandbox, but anyhow you may want to use RHFInput: https://github.com/react-hook-form/react-hook-form-input

and check out this issue: #21

from input.

bluebill1049 avatar bluebill1049 commented on July 1, 2024

ok figure it out, https://codesandbox.io/s/react-semantic-ui-react-form-hook-issue-evldk you are missing unregister, because component get unmounted.

from input.

hanrok avatar hanrok commented on July 1, 2024

Sorry if I didn't get it right but where should the unregister action need to take place?
I'm registering items only on the JSX tags so I thought the unregister would fire automatically when the tags are purged.

Where do I need to move the unregister call? do I need to iterate over all fields on component unmount?

Thanks a lot

from input.

bluebill1049 avatar bluebill1049 commented on July 1, 2024

actually you want to contribute to
Screen Shot 2019-12-18 at 7 21 05 am
the readme? to do a simple description?

from input.

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.