Skip to content

Commit a18552a

Browse files
author
Austin Green
authored
fix(buttons): allow correct ref validation in PropTypes (#396)
1 parent c257b6c commit a18552a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ ChevronButton.propTypes = {
4545
focusInset: PropTypes.bool,
4646
hovered: PropTypes.bool,
4747
active: PropTypes.bool,
48-
/** Callback for reference of the native button element */
49-
buttonRef: PropTypes.func,
5048
/** Rotates icon 180 degrees */
5149
rotated: PropTypes.bool
5250
};

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ IconButton.propTypes = {
4343
disabled: PropTypes.bool,
4444
focused: PropTypes.bool,
4545
hovered: PropTypes.bool,
46-
active: PropTypes.bool,
47-
/** Callback for reference of the native button element */
48-
buttonRef: PropTypes.func
46+
active: PropTypes.bool
4947
};
5048

5149
IconButton.defaultProps = {

0 commit comments

Comments
 (0)