Followup to 6896, add explanation of workaround. (#6905)
Jim committed
May 27, 2016 at 09:19 UTC
ba3bfe3e31ae06ba2f3db792c0784c3ee58b76dd
1 file changed
+3
src/renderers/dom/shared/ReactDOMComponent.js
+3
@@ -624,6 +624,9 @@ ReactDOMComponent.Mixin = {
624
} else if (props.is) {
625
el = ownerDocument.createElement(this._currentElement.type, props.is);
626
} else {
627
+ // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
628
+ // See discussion in https://github.com/facebook/react/pull/6896
629
+ // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
630
el = ownerDocument.createElement(this._currentElement.type);
631
}
632
} else {