Skip to content

Commit

Permalink
Merge branch 'main' into fix/ISSUE-3846-setValue-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideFrancescon committed Sep 5, 2023
2 parents 305f319 + da58b29 commit 09d81ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/formik/src/Formik.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export function useFormik<Values extends FormikValues = FormikValues>({
dispatchFn();
}
},
[props.initialErrors, props.initialStatus, props.initialTouched]
[props.initialErrors, props.initialStatus, props.initialTouched, props.onReset]
);

React.useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/docs/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function SidebarRoutes({
const href = '/docs/[...slug]';
const pagePath = removeFromLast(path!, '.');
const pathname = addTagToSlug(pagePath, tag);
const selected = slug.startsWith(pagePath);
const selected = (slug === pagePath);
const route = { href, path, title, pathname, selected };
return (
<SidebarPost
Expand Down

0 comments on commit 09d81ce

Please sign in to comment.