diff --git a/src/SearchField/SearchFieldAdvanced.jsx b/src/SearchField/SearchFieldAdvanced.jsx index 8788308d3f..66ff2f82e4 100644 --- a/src/SearchField/SearchFieldAdvanced.jsx +++ b/src/SearchField/SearchFieldAdvanced.jsx @@ -170,8 +170,8 @@ SearchFieldAdvanced.propTypes = { value: PropTypes.string, /** specifies the icon element(s) to use for the clear and submit buttons. */ icons: PropTypes.shape({ - submit: PropTypes.element.isRequired, - clear: PropTypes.element, + submit: PropTypes.elementType.isRequired, + clear: PropTypes.elementType, }), /** specifies the aria-label attribute on the form element. This is useful if you use the `SearchField` component * more than once on a page. */ diff --git a/src/SearchField/index.jsx b/src/SearchField/index.jsx index 9d46f7d802..1a54327514 100644 --- a/src/SearchField/index.jsx +++ b/src/SearchField/index.jsx @@ -132,8 +132,8 @@ SearchField.propTypes = { * ``` */ icons: PropTypes.shape({ - submit: PropTypes.element.isRequired, - clear: PropTypes.element, + submit: PropTypes.elementType.isRequired, + clear: PropTypes.elementType, }), /** * Specifies the aria-label attribute on the form element.