From 42098c2bc6b8eb40f071a073fbeb46202004cf08 Mon Sep 17 00:00:00 2001 From: Tyeetale <17817587+tyeetale@users.noreply.github.com> Date: Tue, 23 Aug 2022 20:54:17 +0700 Subject: [PATCH] [docs] Fix typo (#2212) update to reset Dirty and reset touch hooks with the proper invocation. --- docs/src/docs/form/use-form.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docs/form/use-form.mdx b/docs/src/docs/form/use-form.mdx index 66bb4d08ac4..e5abf117caf 100644 --- a/docs/src/docs/form/use-form.mdx +++ b/docs/src/docs/form/use-form.mdx @@ -66,8 +66,8 @@ Hook returns an object with the following properties: - `isDirty` – returns boolean value that indicates that field value is not the same as specified in `initialValues` - `setDirty` – sets fields dirty state - `setTouched` – sets fields touched state -- `resetDirtyState` – clears dirty state -- `resetTouchedState` – clears touched state +- `resetDirty` – clears dirty state +- `resetTouched` – clears touched state - `getInputProps` – returns an object with value, onChange and error that should be spread on input ## UseFormReturnType