@samitouri / QOS-React / commits / f0b140d726

Fix IE11 placeholder textContent value bug. (#7002)

Jim committed Jun 8, 2016 at 18:58 UTC f0b140d7266708e360d98127a6ee0f47dd2419bd
1 file changed +3 -1
src/renderers/dom/client/wrappers/ReactDOMTextarea.js
+3 -1
@@ -187,7 +187,9 @@ var ReactDOMTextarea = {
187 // This is in postMount because we need access to the DOM node, which is not
188 // available until after the component has mounted.
189 var node = ReactDOMComponentTree.getNodeFromInstance(inst);
190 - node.value = node.value; // Detach value from defaultValue
190 +
191 + // Warning: node.value may be the empty string at this point (IE11) if placeholder is set.
192 + node.value = node.textContent; // Detach value from defaultValue
193 },
194 };
195