Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1224 from AlexKVal/fix
Browse files Browse the repository at this point in the history
Fix 'isRequireForA11y' undefined/null checking
  • Loading branch information
AlexKVal committed Aug 27, 2015
2 parents 4503869 + e438250 commit 886054d
Showing 1 changed file with 1 addition and 1 deletion.
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 886054d

Please sign in to comment.