Skip to content

Commit cf2fc4a

Browse files
author
Austin Green
committed
fix(buttons): allow correct ref validation in PropTypes
1 parent c257b6c commit cf2fc4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/buttons/src/views/icon-button/ChevronButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ChevronButton.propTypes = {
4646
hovered: PropTypes.bool,
4747
active: PropTypes.bool,
4848
/** Callback for reference of the native button element */
49-
buttonRef: PropTypes.func,
49+
buttonRef: PropTypes.any,
5050
/** Rotates icon 180 degrees */
5151
rotated: PropTypes.bool
5252
};

packages/buttons/src/views/icon-button/IconButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ IconButton.propTypes = {
4545
hovered: PropTypes.bool,
4646
active: PropTypes.bool,
4747
/** Callback for reference of the native button element */
48-
buttonRef: PropTypes.func
48+
buttonRef: PropTypes.any
4949
};
5050

5151
IconButton.defaultProps = {

0 commit comments

Comments
 (0)