Skip to content

Commit 09d81ce

Browse files
Merge branch 'main' into fix/ISSUE-3846-setValue-docs
2 parents 305f319 + da58b29 commit 09d81ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/formik/src/Formik.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export function useFormik<Values extends FormikValues = FormikValues>({
417417
dispatchFn();
418418
}
419419
},
420-
[props.initialErrors, props.initialStatus, props.initialTouched]
420+
[props.initialErrors, props.initialStatus, props.initialTouched, props.onReset]
421421
);
422422

423423
React.useEffect(() => {

website/src/pages/docs/[...slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function SidebarRoutes({
223223
const href = '/docs/[...slug]';
224224
const pagePath = removeFromLast(path!, '.');
225225
const pathname = addTagToSlug(pagePath, tag);
226-
const selected = slug.startsWith(pagePath);
226+
const selected = (slug === pagePath);
227227
const route = { href, path, title, pathname, selected };
228228
return (
229229
<SidebarPost

0 commit comments

Comments
 (0)