Skip to content

Commit

Permalink
[fixed] id passthrough for MenuItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny Wang committed Aug 25, 2015
1 parent b8e8615 commit 664b465
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default class MenuItem extends React.Component {
<SafeAnchor
role='menuitem'
tabIndex='-1'
id={this.props.id}
target={this.props.target}
title={this.props.title}
href={this.props.href || ''}
Expand Down Expand Up @@ -78,7 +79,11 @@ MenuItem.propTypes = {
target: React.PropTypes.string,
title: React.PropTypes.string,
onKeyDown: React.PropTypes.func,
onSelect: React.PropTypes.func
onSelect: React.PropTypes.func,
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
};

MenuItem.defaultProps = {
Expand Down

0 comments on commit 664b465

Please sign in to comment.