Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit eb49f81

Browse files
author
Mike England
committed
Add ErrorMessage component to Select Input
1 parent 690cd9e commit eb49f81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/atoms/Inputs/Select/Select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Field} from 'formik'
1+
import {Field, ErrorMessage} from 'formik'
22
import PropTypes from 'prop-types'
33

44
/**
@@ -37,6 +37,7 @@ export default function Select({
3737
)
3838
})}
3939
{description && <p>{description}</p>}
40+
<ErrorMessage name={id} />
4041
</Field>
4142
</div>
4243
)

0 commit comments

Comments
 (0)