Skip to content

Don't set empty placeholder to work around IE11 bug - #11177

Merged
gaearon merged 2 commits into
react:masterfrom
gaearon:fix-ie11-placeholder
Oct 10, 2017
Merged

Don't set empty placeholder to work around IE11 bug#11177
gaearon merged 2 commits into
react:masterfrom
gaearon:fix-ie11-placeholder

Conversation

@gaearon

@gaearon gaearon commented Oct 10, 2017

Copy link
Copy Markdown
Collaborator

Should probably fix #11172.
Based on 15 branch code:

https://github.com/facebook/react/blob/571a9208d5133e8737f565fe60b762d201f0d37c/src/renderers/dom/shared/ReactDOMComponent.js#L830-L839

I made the fix more targeted to make it clearer.

I haven't tested because I don't have IE.

@aweary

aweary commented Oct 10, 2017

Copy link
Copy Markdown
Contributor

@gaearon I added a test case for textarea placeholders and deployed the DOM fixtures with this build here: http://placeholder-fix-ie11.surge.sh/textareas

It looks like the placeholder is now correctly rendered in IE11 on Windows 10.

@gaearon
gaearon merged commit 309fa6c into react:master Oct 10, 2017
@gaearon
gaearon deleted the fix-ie11-placeholder branch October 10, 2017 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

React 16 does not render text area placeholder initially in IE11 Win10

3 participants