...">

Textarea placeholder not shown in IE 11, which renders using React

I have the following HTML:

<textarea placeholder="Usual textarea placeholder"></textarea> <div id="react-container"></div> 

... and after JS:

 ReactDOM.render( <textarea placeholder="React textarea placeholder"/>, document.getElementById('react-container') ); 

So, I'm trying to show the same things using React and using plain HTML.

However, in IE 11, at least textarea created using React behaves like this:

enter image description here

Thus, when loading the page, the text is not saved. What's going on here? Both of these text fields look exactly the same in the DOM.

Here is the link to the script: https://jsfiddle.net/bbs8odf9/2/

+7
javascript html internet-explorer reactjs
source share
1 answer

So it looks like the PR that will fix this in React has just been reviewed and accepted: https://github.com/facebook/react/pull/6406

I was expecting a fix to be released soon.

+4
source share

All Articles