Skip to content

Commit 5c30c11

Browse files
committed
Add missing PropTypes to the SubMenu component
1 parent fde4d2c commit 5c30c11

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/SubMenu.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export default class SubMenu extends AbstractMenu {
2222
onMouseOut: PropTypes.func,
2323
forceOpen: PropTypes.bool,
2424
forceClose: PropTypes.func,
25-
parentKeyNavigationHandler: PropTypes.func
25+
parentKeyNavigationHandler: PropTypes.func,
26+
onClick: PropTypes.func,
27+
data: PropTypes.object,
28+
preventCloseOnClick: PropTypes.bool
2629
};
2730

2831
static defaultProps = {
@@ -36,7 +39,10 @@ export default class SubMenu extends AbstractMenu {
3639
onMouseOut: () => null,
3740
forceOpen: false,
3841
forceClose: () => null,
39-
parentKeyNavigationHandler: () => null
42+
parentKeyNavigationHandler: () => null,
43+
onClick: () => null,
44+
data: {},
45+
preventCloseOnClick: false
4046
};
4147

4248
constructor(props) {

0 commit comments

Comments
 (0)