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
The Form component support throwing error in its onSubmit callback and renders the error message. But I my application, the FormAction is not reset to enabled even if I modify the input.
exportdefaultfunctionFormActions(props: FormActionsProps){constform=useForm();// this line changedconst{ submitting, valid, dirtySinceLastSubmit }=form.getState();return(<BaseFormActions{...props}// this line changeddisabled={!dirtySinceLastSubmit&&!valid}processing={submitting}/>);}
The
Form
component support throwing error in itsonSubmit
callback and renders the error message. But I my application, theFormAction
is not reset to enabled even if I modify the input.Full example: https://codesandbox.io/s/trusting-brown-42suu
Root cause:
lunar/packages/forms/src/components/FormActions/index.tsx
Line 14 in fe3ed97
A possible solution:
Ref: final-form/final-form#48 (comment)
The text was updated successfully, but these errors were encountered: