Is there a way we can disable all Controller inside a FormContext? #1945
-
|
Hello, I am working on a form with nested components. We are building our UI using Ant Design. and to support it, we are using Controller from react-hook-form. As it's a long form, we are using FormContext. Our requirement is to disable entire form based on one boolean flag. Is there any way that we can disable all from controls ? Like passing prop to useForm. |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Jun 24, 2020
Replies: 1 comment 2 replies
-
|
sounds like just need to use React Context API to pass down the props, we don't have global disable functionality. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ashah2193
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sounds like just need to use React Context API to pass down the props, we don't have global disable functionality.