You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here we find useFormProps.formState.disabled. if I try to edit this prop on runtime I get an error that the property is in readonly. So the questions are: how can I set the entire form to disabled? What is the purpose of this field? How can I change it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the type definition of FormState we find a disabled property:
Initializing a form like following, we get the props with the formState:
Here we find
useFormProps.formState.disabled
. if I try to edit this prop on runtime I get an error that the property is in readonly. So the questions are: how can I set the entire form to disabled? What is the purpose of this field? How can I change it?Working with "react-hook-form": "7.53.1"
Beta Was this translation helpful? Give feedback.
All reactions