Skip to content

Commit

Permalink
fix(use-form): remove setValuesSnapshot from reset
Browse files Browse the repository at this point in the history
  • Loading branch information
dodas committed Oct 25, 2023
1 parent f5069d3 commit cff3b0b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mantine-form/src/use-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export function useForm<
const reset: Reset = useCallback(() => {
_setValues(valuesSnapshot.current);
clearErrors();
setValuesSnapshot(initialValues);
setDirty({});
resetTouched();
}, []);
Expand Down

0 comments on commit cff3b0b

Please sign in to comment.