disabled props in useForm hook #11738
Answered
by
sujinleeme
kaio-eduardo
asked this question in
Q&A
-
There is a disabled props in useForm hook that seems to work to set all the fields as disabled, but i did not find anything about it in the docs:`` const { control, watch, reset, formState, handleSubmit } = useForm({
disabled: true,
}); is it ok to use this option? |
Beta Was this translation helpful? Give feedback.
Answered by
sujinleeme
Mar 31, 2024
Replies: 1 comment
-
Yes, the new |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kaio-eduardo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the new
disabled
prop was introduced in the v7.48 version.https://github.com/react-hook-form/react-hook-form/releases/tag/v7.48.01