Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1214 from pivotal-cf/menuitem-id-p…
Browse files Browse the repository at this point in the history
…assthrough

[fixed] id passthrough for MenuItem
  • Loading branch information
taion committed Aug 26, 2015
2 parents e937e8c + 664b465 commit 4503869
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 4503869

Please sign in to comment.