-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TextField] Large 'X' shown in IE 11 on production builds #5055
Comments
Ah, this probably has something to do with the
https://msdn.microsoft.com/en-us/library/windows/apps/hh465740.aspx And a possible solution:
http://stackoverflow.com/questions/14007655/remove-ie10s-clear-field-x-button-on-certain-inputs |
Adding the following to my react tree hid the <style type='text/css' dangerouslySetInnerHTML={{__html: '::-ms-clear {display: none;}'}} /> I think there is a solid argument for hiding
Conversely, it would be absolutely possible to style it. I doubt the spec has any opinion in this situation, however. |
Good point @petermikitsh
@oliviertassinari just inject Better solution will come as soon as |
Technical speaking
@umidbekkarimov There is an issue with the
That's basically an issue with the current inline style approach. That's fixed on the Visually speaking@petermikitsh You have some good points. @callemall/material-ui Any light here 💡? |
@oliviertassinari If the X is a little smaller, vertically centered, not |
Here is what we have on the I hope that facebook/react#6822 is solved by the time we release |
Sorry, I'm confused about the resolution and unsure what |
next refers to the v1-alpha branch. You can find it on npm under the @next tag. |
@oliviertassinari So was this completely removed at some point? Really missing this feature. |
@christophrus It was never added nor removed. It's a browser feature ( |
Try to play with size:
|
Problem description
Single-line
TextField
components render a large 'X', floated to the right, on IE 11 when the field is focused and the code was built with'process.env.NODE_ENV': JSON.stringify('production')
.In my project:
In the documentation site:
### Steps to reproduce
In an IE 11 browser, go to http://www.material-ui.com/#/components/text-field and select the 3rd example (the one with text "Default Value").
Versions
Note
The 'X' is not present in builds with a
JSON.stringify('development')
value. It's also not present when setting themultiLine
prop. It seems to only present in very specific situations.I'm not sure if IE 11 is officially supported by material-ui. In the case it's not, I would still find it valuable to have a discussion of how those of us who wish to support it can monkey-patch our own builds.
The text was updated successfully, but these errors were encountered: