We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4503869 commit e438250Copy full SHA for e438250
src/utils/CustomPropTypes.js
@@ -44,7 +44,7 @@ const CustomPropTypes = {
44
45
isRequiredForA11y(propType){
46
return function(props, propName, componentName){
47
- if (props[propName] === null) {
+ if (props[propName] == null) {
48
return new Error(
49
'The prop `' + propName + '` is required to make ' + componentName + ' accessible ' +
50
'for users using assistive technologies such as screen readers `'
0 commit comments