-
-
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
[Autocomplete] Adding startAdornment results in extra top padding on IE11 only #19213
Comments
@aisamu Did you find a solution that we could consider deploying? What's so special about the autocomplete that breaks it? |
I'm not sure. |
@aisamu We very likely have a solution in #17680 (comment). Could you confirm? |
@oliviertassinari Yup, but I'm unsure how to test that locally.
That apparently works, and
Unfortunately, the build fails to resolve things properly, emitting errors like this:
There is a I'm not sure if that's related to the way material-ui packages things separately on the mono-repo or if it's due to our own webpack setup. Using fully resolved links on |
@aisamu You could open your node_modules and apply the patch. I have never seen yarn link really work here. |
The height is now correct (IE11 now matches Chrome/FF/Safari), but it looks like there's a small visual regression when placeholders are used instead of labels (on all browsers), in the form of a discontinuity on the outline:
|
Don't worry about the gap, it's another issue and being taken care of. |
London Underground would like to have a word with you
Again, thanks! |
"Please mind the gap between the train and the station" 🙉 |
Current Behavior 😯
Using a
startAdornment
on AutoComplete'srenderInput
results in an extra top padding on IE11.We've seen it with the
outlined
variant, but only when we set aplaceholder
.(i.e. works withlabel
).Manually setting the
TextField
'snotched
property tofalse
appears to "fix" it.Here's the issue in action (the table structure mimicks the components' placement on the screenshots):
Inspecting the generated DOM element shows that the
<fieldset>
tag has atop: -5px
property which, when cleared, fixes the issue:Expected Behavior 🤔
Should be identical to the other browsers (tested on 5 others, listed below)
Steps to Reproduce 🕹
The modified Material UI autocomplete demo above should show the issue, but unfortunately codesandbox.io is currently broken on IE11 due to transpiling issues.
The gist of the demo is to create an
AutoComplete
with theplaceholder
andstartAdornment
params set onrenderInput
'sTextField
and visualize it on IE11:Context 🔦
We're happy MaterialUI users with IE11 users 😄
Your Environment 🌎
Thanks for this great project!
The text was updated successfully, but these errors were encountered: