-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useResetForm should take an optional second parameter of ResetFormOpts #4707
Labels
✨ enhancement
a "nice to have" feature
Comments
This was referenced Jun 26, 2024
This was referenced Sep 12, 2024
This was referenced Sep 20, 2024
This was referenced Oct 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: