Skip to content

Commit

Permalink
fix: Wrong propTypes for SearchFieldAdvanced.icons (#3026)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald authored May 1, 2024
1 parent f41b7c6 commit 0750db7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SearchField/SearchFieldAdvanced.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
4 changes: 2 additions & 2 deletions src/SearchField/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0750db7

Please sign in to comment.