From 0750db79bba38594123ec18e30786a60be007122 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Wed, 1 May 2024 15:50:42 -0700 Subject: [PATCH] fix: Wrong propTypes for SearchFieldAdvanced.icons (#3026) --- src/SearchField/SearchFieldAdvanced.jsx | 4 ++-- src/SearchField/index.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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.