Fix IE11 placeholder textContent value bug. (#7002)

This commit is contained in:
Jim
2016-06-08 18:58:37 -07:00
parent c47830d12c
commit f0b140d726
@@ -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
},
};