@samitouri / QOS-React-2 / commits / 8c7d743361

Fix for #5957: Bug on resolving default props (HTMLAllCollection)

krystian.karczewski committed Feb 2, 2016 at 11:51 UTC 8c7d7433613a8851580c9f9bf70f5f4a5ccabda9
1 file changed +1 -1
src/isomorphic/classic/element/ReactElement.js
+1 -1
@@ -153,7 +153,7 @@ ReactElement.createElement = function(type, config, children) {
153 if (type && type.defaultProps) {
154 var defaultProps = type.defaultProps;
155 for (propName in defaultProps) {
156 - if (typeof props[propName] === 'undefined') {
156 + if (props[propName] === undefined) {
157 props[propName] = defaultProps[propName];
158 }
159 }