Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Wrong propTypes for SearchFieldAdvanced.icons #3026

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading