Skip to content

Commit

Permalink
Followup to 6896, add explanation of workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfb authored and jim committed May 27, 2016
1 parent d87005e commit 0ff54ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/dom/shared/ReactDOMComponent.js
Expand Up @@ -624,6 +624,8 @@ 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
el = ownerDocument.createElement(this._currentElement.type);
}
} else {
Expand Down

0 comments on commit 0ff54ae

Please sign in to comment.