admin管理员组文章数量:1429445
I have following HTML:
<textarea placeholder="Usual textarea placeholder"></textarea>
<div id="react-container"></div>
... and following JS:
ReactDOM.render(
<textarea placeholder="React textarea placeholder"/>,
document.getElementById('react-container')
);
So, I am trying to show the same things using React and using usual HTML.
However, in IE 11 at least, textarea rendered using React behaves like this:
So, textarea placeholder isn't displayed when page loaded. What's going on here? Both these textareas looks exactly the same in DOM.
Here is a link to the fiddle: /
I have following HTML:
<textarea placeholder="Usual textarea placeholder"></textarea>
<div id="react-container"></div>
... and following JS:
ReactDOM.render(
<textarea placeholder="React textarea placeholder"/>,
document.getElementById('react-container')
);
So, I am trying to show the same things using React and using usual HTML.
However, in IE 11 at least, textarea rendered using React behaves like this:
So, textarea placeholder isn't displayed when page loaded. What's going on here? Both these textareas looks exactly the same in DOM.
Here is a link to the fiddle: https://jsfiddle/bbs8odf9/2/
Share Improve this question asked Apr 27, 2016 at 14:52 Nikolai MavrenkovNikolai Mavrenkov 1,92319 silver badges22 bronze badges 3- Have you created a bug for this? I'm running into the same issue right now. Can confirm it breaks in IE11, but works in IE10 (and other browsers) with React v15.0.2. – arendjr Commented May 9, 2016 at 9:59
- Update: I didn't see a report for this among the issues for React, so I created it: github./facebook/react/issues/6731 – arendjr Commented May 9, 2016 at 10:04
- @arendjr No, I didn't create a bug for it. I thought I will have a time to investigate this bug closely, but I didn't :( – Nikolai Mavrenkov Commented May 10, 2016 at 8:17
1 Answer
Reset to default 4So it appears the PR that will fix this in React has just been reviewed and accepted: https://github./facebook/react/pull/6406
I would expect the fix to be released soonish.
本文标签: javascriptTextarea placeholder isn39t shown in IE 11 being rendered using ReactStack Overflow
版权声明:本文标题:javascript - Textarea placeholder isn't shown in IE 11 being rendered using React - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745536301a2662287.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论