We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8e8615 commit 664b465Copy full SHA for 664b465
src/MenuItem.js
@@ -47,6 +47,7 @@ export default class MenuItem extends React.Component {
47
<SafeAnchor
48
role='menuitem'
49
tabIndex='-1'
50
+ id={this.props.id}
51
target={this.props.target}
52
title={this.props.title}
53
href={this.props.href || ''}
@@ -78,7 +79,11 @@ MenuItem.propTypes = {
78
79
target: React.PropTypes.string,
80
title: React.PropTypes.string,
81
onKeyDown: React.PropTypes.func,
- onSelect: React.PropTypes.func
82
+ onSelect: React.PropTypes.func,
83
+ id: React.PropTypes.oneOfType([
84
+ React.PropTypes.string,
85
+ React.PropTypes.number
86
+ ])
87
};
88
89
MenuItem.defaultProps = {
0 commit comments