Skip to content

Commit 4adda22

Browse files
authored
Merge branch 'main' into cohesive-types
2 parents b770e8e + b35b9ba commit 4adda22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/api/formik.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ const ContactForm = ({
275275
);
276276
```
277277

278-
**Warning:** `<Formik component>` takes precendence over `<Formik render>` so
278+
**Warning:** `<Formik component>` takes precedence over `<Formik render>` so
279279
don’t use both in the same `<Formik>`.
280280

281281
### `render: (props: FormikProps<Values>) => ReactNode`

examples/with-material-ui/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const WithMaterialUI = () => {
3838
label="Email"
3939
value={formik.values.email}
4040
onChange={formik.handleChange}
41+
onBlur={formik.handleBlur}
4142
error={formik.touched.email && Boolean(formik.errors.email)}
4243
helperText={formik.touched.email && formik.errors.email}
4344
/>
@@ -49,6 +50,7 @@ const WithMaterialUI = () => {
4950
type="password"
5051
value={formik.values.password}
5152
onChange={formik.handleChange}
53+
onBlur={formik.handleBlur}
5254
error={formik.touched.password && Boolean(formik.errors.password)}
5355
helperText={formik.touched.password && formik.errors.password}
5456
/>

0 commit comments

Comments
 (0)