Skip to content
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

[@mantine/form] Reset should set values to current initialValues #5123

Merged
merged 1 commit into from Nov 6, 2023

Conversation

dodas
Copy link
Contributor

@dodas dodas commented Oct 25, 2023

Fixes #5122

@rtivital
Copy link
Member

Can you please add a test for this?

@dodas
Copy link
Contributor Author

dodas commented Oct 26, 2023

@rtivital sure, test added.
lmk if it needs any tweaking.

@dodas dodas changed the title fix(useForm): reset should set values to current initialValues [@mantine/form] Reset should set values to current initialValues Oct 26, 2023
@rtivital rtivital merged commit caef3b1 into mantinedev:master Nov 6, 2023
1 check passed
@rtivital
Copy link
Member

rtivital commented Nov 6, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useForm: reset() does not respect updated initialValues
2 participants