-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
useForm reset type change #3956
Comments
Hmm, the new behaviour was introduced in Because it's now accepting an argument the event argument passed by If it is considered a breaking change the argument needs to be rolled back and maybe reintroduced as a separate method. |
I'll roll it back in next release |
Fixed in 6.0.6 |
What package has an issue
@mantine/form
Describe the bug
I noticed when upgrading mantine form to the latest version that the
form.reset
type is different and requires an arrow function in theonClick
handler to work properly. While this isn't a huge change, I would expect to be able to do:when not passing in any arguments (now that
form.reset
allows partial values)However, this shows the following error:
What version of @mantine/hooks page do you have in package.json?
6.0.5
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/damp-cloud-ygrrc8?file=/src/App.tsx
Do you know how to fix the issue
No
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
No response
The text was updated successfully, but these errors were encountered: