Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1228 from AlexKVal/v0.26-rc
Browse files Browse the repository at this point in the history
`v0.26 rc` lift-up
  • Loading branch information
AlexKVal committed Aug 27, 2015
2 parents 757aa97 + 886054d commit 0a22241
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"css-loader": "^0.16.0",
"es5-shim": "^4.1.10",
"eslint": "^1.1.0",
"eslint-config-airbnb": "0.0.7",
"eslint-config-airbnb": "0.0.8",
"eslint-plugin-babel": "^2.0.0",
"eslint-plugin-lodash": "^0.1.3",
"eslint-plugin-mocha": "^0.4.0",
"eslint-plugin-mocha": "^0.5.1",
"eslint-plugin-react": "^3.1.0",
"express": "^4.13.1",
"extract-text-webpack-plugin": "^0.8.2",
Expand Down
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
2 changes: 1 addition & 1 deletion src/utils/CustomPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const CustomPropTypes = {

isRequiredForA11y(propType){
return function(props, propName, componentName){
if (props[propName] === null) {
if (props[propName] == null) {
return new Error(
'The prop `' + propName + '` is required to make ' + componentName + ' accessible ' +
'for users using assistive technologies such as screen readers `'
Expand Down

0 comments on commit 0a22241

Please sign in to comment.