mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix IE11 placeholder textContent value bug. (#7002)
This commit is contained in:
@@ -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
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user