Fix IE11 placeholder textContent value bug. (#7002)

(cherry picked from commit f0b140d726)
This commit is contained in:
Jim authored and Paul O’Shannessy committed 2016-06-14 15:50:39 -07:00
1 parent 89746fa70f
commit cf50a83b8d
1 file changed
+3 -1
@@ -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
},
};