From e438250494844dd481240871b3e84fb56bbb5937 Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Wed, 26 Aug 2015 23:43:44 +0300 Subject: [PATCH] [fixed] 'isRequireForA11y' undefined/null checking --- src/utils/CustomPropTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 `'