diff --git a/.changeset/brown-jokes-act.md b/.changeset/brown-jokes-act.md
new file mode 100644
index 000000000..67ee8eb03
--- /dev/null
+++ b/.changeset/brown-jokes-act.md
@@ -0,0 +1,5 @@
+---
+'formik': patch
+---
+
+Prevent calling getSelectedValues when the element has not options
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index f23bdfe0a..d06d1d737 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,6 +1,6 @@
# These are supported funding model platforms
-github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
+github: [jaredpalmer] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: formik
ko_fi: # Replace with a single Ko-fi username
diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/1.Bug-report.md
similarity index 85%
rename from .github/ISSUE_TEMPLATE/Bug_report.md
rename to .github/ISSUE_TEMPLATE/1.Bug-report.md
index f761a257b..72955f5a6 100644
--- a/.github/ISSUE_TEMPLATE/Bug_report.md
+++ b/.github/ISSUE_TEMPLATE/1.Bug-report.md
@@ -1,43 +1,46 @@
----
-name: "\U0001F41B Bug report"
-about: Create a report to help make Formik better
----
-
-## 🐛 Bug report
-
-### Current Behavior
-
-
-
-### Expected behavior
-
-
-
-### Reproducible example
-
-
-
-
-
-
-
-### Suggested solution(s)
-
-
-
-### Additional context
-
-
-
-### Your environment
-
-
-
-| Software | Version(s) |
-| ---------------- | ---------- |
-| Formik |
-| React |
-| TypeScript |
-| Browser |
-| npm/Yarn |
-| Operating System |
+---
+name: Bug report
+about: Create a bug report for Formik / examples
+title: ''
+labels: 'Type: Bug'
+assignees: ''
+---
+
+## Bug report
+
+### Current Behavior
+
+
+
+### Expected behavior
+
+
+
+### Reproducible example
+
+
+
+
+
+
+
+### Suggested solution(s)
+
+
+
+### Additional context
+
+
+
+### Your environment
+
+
+
+| Software | Version(s) |
+| ---------------- | ---------- |
+| Formik |
+| React |
+| TypeScript |
+| Browser |
+| npm/Yarn |
+| Operating System |
diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md b/.github/ISSUE_TEMPLATE/2.Feature-request.md
similarity index 86%
rename from .github/ISSUE_TEMPLATE/Feature_request.md
rename to .github/ISSUE_TEMPLATE/2.Feature-request.md
index 61f7e1e0c..86c53536b 100644
--- a/.github/ISSUE_TEMPLATE/Feature_request.md
+++ b/.github/ISSUE_TEMPLATE/2.Feature-request.md
@@ -1,32 +1,35 @@
----
-name: "\U0001F680Feature request"
-about: Suggest an idea for Formik
----
-
-## 🚀 Feature request
-
-### Current Behavior
-
-
-
-### Desired Behavior
-
-
-
-### Suggested Solution
-
-
-
-
-
-### Who does this impact? Who is this for?
-
-
-
-### Describe alternatives you've considered
-
-
-
-### Additional context
-
-
+---
+name: Feature request
+about: Request a new feature for Formik
+title: ''
+labels: 'Type: Feature Request'
+assignees: ''
+---
+
+## Feature request
+
+### Current Behavior
+
+
+
+### Desired Behavior
+
+
+
+### Suggested Solution
+
+
+
+
+
+### Who does this impact? Who is this for?
+
+
+
+### Describe alternatives you've considered
+
+
+
+### Additional context
+
+
diff --git a/.github/ISSUE_TEMPLATE/Documentation.md b/.github/ISSUE_TEMPLATE/Documentation.md
deleted file mode 100644
index 4b5403327..000000000
--- a/.github/ISSUE_TEMPLATE/Documentation.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-name: "\U0001F41B Documentation"
-about: Imrovements or suggestions of Formik documentation
----
-
-## 📖 Documentation
diff --git a/.github/ISSUE_TEMPLATE/Question.md b/.github/ISSUE_TEMPLATE/Question.md
deleted file mode 100644
index ed1e99fc3..000000000
--- a/.github/ISSUE_TEMPLATE/Question.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-name: '❓Question'
-about: 'Have a question? Checkout GitHub Discussions or the #formik channel on Formium Discord server'
----
-
-## ❓Question
-
-Seriously, for immediate help, just ask your question on the #formik channel on [Formium](https://discordapp.com/invite/MbKwYuq).
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 000000000..24f6595c5
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,8 @@
+blank_issues_enabled: false
+contact_links:
+ - name: Ask a question
+ url: https://github.com/formium/formik/discussions
+ about: Ask questions and discuss with other community members
+ - name: Join the Discord server
+ url: https://discord.gg/pJSg287
+ about: Chat with other community members in real-time
diff --git a/docs/package.json b/docs/package.json
index 792ccc9c8..ed390ba68 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -20,7 +20,7 @@
"@mdx-js/react": "^1.5.1",
"@mdx-js/tag": "^0.20.3",
"@next/mdx": "^9.4.0",
- "@next/plugin-google-analytics": "^9.5.5",
+ "@next/plugin-google-analytics": "^10.0.3",
"@zeit/fetch": "^6.0.0",
"@zeit/react-jsx-parser": "^2.0.0",
"async-sema": "^3.1.0",
diff --git a/docs/src/components/LayoutDocs.tsx b/docs/src/components/LayoutDocs.tsx
index 7ad4f34a9..820388142 100644
--- a/docs/src/components/LayoutDocs.tsx
+++ b/docs/src/components/LayoutDocs.tsx
@@ -183,7 +183,7 @@ function SidebarRoutes({
const pagePath = removeFromLast(path!, '.');
const pathname = addTagToSlug(pagePath, tag!);
- const selected = slug.startsWith(pagePath);
+ const selected = slug === pagePath;
const route = { href: pagePath, path, title, pathname, selected };
return (
diff --git a/docs/src/lib/get-route-context.tsx b/docs/src/lib/get-route-context.tsx
index 69a629c42..f8dfe8480 100644
--- a/docs/src/lib/get-route-context.tsx
+++ b/docs/src/lib/get-route-context.tsx
@@ -39,7 +39,7 @@ export function getRouteContext(
parent && i === 0
? {
...route,
- title: `${parent.title}: ${route.title}`,
+ title: `${_route.title} | ${parent.title}`,
}
: route;
@@ -51,7 +51,7 @@ export function getRouteContext(
..._route,
title:
parent && !parent.heading
- ? `${parent.title}: ${_route.title}`
+ ? `${_route.title} | ${parent.title}`
: _route.title,
};
// Continue the loop until we know the next route
@@ -62,7 +62,7 @@ export function getRouteContext(
parent && !parent.heading && !routes[i + 1]?.path
? {
...route,
- title: `${parent.title}: ${route.title}`,
+ title: `${route.title} | ${parent.title}`,
}
: route;
}
diff --git a/docs/src/manifests/manifest.json b/docs/src/manifests/manifest.json
index 88e4cce3f..7b248fdd4 100644
--- a/docs/src/manifests/manifest.json
+++ b/docs/src/manifests/manifest.json
@@ -50,16 +50,6 @@
}
]
},
- {
- "title": "With React UI Frameworks",
- "open": false,
- "routes": [
- {
- "title": "Material UI",
- "path": "/docs/with-react-ui-frameworks/with-material-ui.md"
- }
- ]
- },
{
"title": "Examples",
"open": true,
diff --git a/docs/src/pages/blog/[...slug].tsx b/docs/src/pages/blog/[...slug].tsx
index 059e84a26..23c9f7b37 100644
--- a/docs/src/pages/blog/[...slug].tsx
+++ b/docs/src/pages/blog/[...slug].tsx
@@ -154,7 +154,7 @@ const RenderPost = ({ post, redirect, preview }: any) => {