mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Followup to 6896, add explanation of workaround. (#6905)
This commit is contained in:
@@ -624,6 +624,9 @@ ReactDOMComponent.Mixin = {
|
||||
} else if (props.is) {
|
||||
el = ownerDocument.createElement(this._currentElement.type, props.is);
|
||||
} else {
|
||||
// Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
|
||||
// See discussion in https://github.com/facebook/react/pull/6896
|
||||
// and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
|
||||
el = ownerDocument.createElement(this._currentElement.type);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user