Skip to content

Commit

Permalink
Followup to 6896, add explanation of workaround. (facebook#6905)
Browse files Browse the repository at this point in the history
(cherry picked from commit ba3bfe3)
  • Loading branch information
jimfb authored and zpao committed Jun 8, 2016
1 parent 1881560 commit 3a9b2de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderers/dom/shared/ReactDOMComponent.js
Expand Up @@ -617,6 +617,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 {
Expand Down

0 comments on commit 3a9b2de

Please sign in to comment.