Skip to content

Commit

Permalink
fix(docs): fix link to docs in console warning (#2955)
Browse files Browse the repository at this point in the history
This PR fixes link to Docs in console warning which is showed when developer forgets to pass identifier. There are two anchor links, both tested, both work well with new link.
  • Loading branch information
jkbktl committed Dec 10, 2020
1 parent cfb912b commit d4314a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ten-donuts-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"formik": patch
---

fix(docs): fix link to docs in console warning
2 changes: 1 addition & 1 deletion packages/formik/src/Formik.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ function warnAboutMissingIdentifier({
console.warn(
`Warning: Formik called \`${handlerName}\`, but you forgot to pass an \`id\` or \`name\` attribute to your input:
${htmlContent}
Formik cannot determine which value to update. For more info see https://github.com/jaredpalmer/formik#${documentationAnchorLink}
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#${documentationAnchorLink}
`
);
}
Expand Down

1 comment on commit d4314a1

@vercel
Copy link

@vercel vercel bot commented on d4314a1 Dec 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.