Skip to content

Commit 9d702f0

Browse files
authored
Merge pull request #3511 from DrMoshtael/patch-7
Part10b: Added onBlur handler
2 parents a9b8b37 + a515aa1 commit 9d702f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/content/10/en/part10b.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ const BodyMassIndexForm = ({ onSubmit }) => {
787787
placeholder="Weight (kg)"
788788
value={formik.values.mass}
789789
onChangeText={formik.handleChange('mass')}
790+
onBlur={formik.handleBlur('mass')}
790791
/>
791792
{formik.touched.mass && formik.errors.mass && (
792793
<Text style={{ color: 'red' }}>{formik.errors.mass}</Text>
@@ -795,6 +796,7 @@ const BodyMassIndexForm = ({ onSubmit }) => {
795796
placeholder="Height (m)"
796797
value={formik.values.height}
797798
onChangeText={formik.handleChange('height')}
799+
onBlur={formik.handleBlur('height')}
798800
/>
799801
{formik.touched.height && formik.errors.height && (
800802
<Text style={{ color: 'red' }}>{formik.errors.height}</Text>

0 commit comments

Comments
 (0)