diff --git a/src/utils/CustomPropTypes.js b/src/utils/CustomPropTypes.js index 8f6c0a00af..caf3623f13 100644 --- a/src/utils/CustomPropTypes.js +++ b/src/utils/CustomPropTypes.js @@ -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 `'