Replies: 1 comment 7 replies
-
shouldn't the disabled |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have a following use case — I want to enable/disable some inputs based on other inputs value or other events. I can successfully use
setValue
to set any input value insideuseEffect
, but if I try toregister()
input with already registered name and set{disabled:true}
, nothing works.How do I achieve this?
Sandbox: https://codesandbox.io/s/react-hook-form-re-register-update-6niq0f?file=/src/index.js
Code:
Beta Was this translation helpful? Give feedback.
All reactions