Skip to content

Commit 886054d

Browse files
committed
Merge pull request react-bootstrap#1224 from AlexKVal/fix
Fix 'isRequireForA11y' undefined/null checking
2 parents 4503869 + e438250 commit 886054d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/CustomPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const CustomPropTypes = {
4444

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

0 commit comments

Comments
 (0)