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
Is your feature request related to a problem? Please describe.
Currently using the useResetForm() composable does not allow you to pass the force: true option, this means you cannot overwrite all fields.
Describe the solution you'd like
The function returned by the useResetForm() composable should allow a second optional parameter to be provided as opts?: Partial<ResetFormOpts>, the same as the resetForm function returned by useForm().
Describe alternatives you've considered
As a workaround, I am able to use the form directly or inject the form with const form = inject(FormContextKey), then use form.resetForm() which allows the reset options to be passed as a second parameter.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently using the
useResetForm()
composable does not allow you to pass theforce: true
option, this means you cannot overwrite all fields.Describe the solution you'd like
The function returned by the
useResetForm()
composable should allow a second optional parameter to be provided asopts?: Partial<ResetFormOpts>
, the same as theresetForm
function returned byuseForm()
.Describe alternatives you've considered
As a workaround, I am able to use the form directly or inject the form with
const form = inject(FormContextKey)
, then useform.resetForm()
which allows the reset options to be passed as a second parameter.The text was updated successfully, but these errors were encountered: