Skip to content

Commit

Permalink
Fix IE11 placeholder textContent value bug. (#7002)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfb committed Jun 9, 2016
1 parent c47830d commit f0b140d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderers/dom/client/wrappers/ReactDOMTextarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ var ReactDOMTextarea = {
// This is in postMount because we need access to the DOM node, which is not
// available until after the component has mounted.
var node = ReactDOMComponentTree.getNodeFromInstance(inst);
node.value = node.value; // Detach value from defaultValue

// Warning: node.value may be the empty string at this point (IE11) if placeholder is set.
node.value = node.textContent; // Detach value from defaultValue
},
};

Expand Down

0 comments on commit f0b140d

Please sign in to comment.