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
  • Loading branch information
jimfb committed May 27, 2016
1 parent f329099 commit ba3bfe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderers/dom/shared/ReactDOMComponent.js
Expand Up @@ -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 {
Expand Down

0 comments on commit ba3bfe3

Please sign in to comment.