Material-ui: Input adornment with IconButton incorrectly positioned on Internet Explorer 11

Created on 19 Feb 2018  路  9Comments  路  Source: mui-org/material-ui

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior


Positioning of the IconButton as an InputAdornment should be the same on IE11 as it is on other browsers.

Current Behavior

The IconButton is rendered too low and further to the right (for a right adornment).

Steps to Reproduce (for bugs)

  1. An example of this is on the material-ui-pickers doc site (https://material-ui-pic.firebaseapp.com/)
  2. Source to produce this is here: https://github.com/dmtrKovalenko/material-ui-pickers/blob/master/lib/src/_shared/DateTextField.jsx

image

The horizontal positioning issue can also be seen on the example on material-ui-next.com. However, the vertical positioning seems to come from using an IconButton.

The horizontal issue is because width: 100% is set on the input element. Removing this and setting flex-grow: 1 fixes this.

The vertical issue can be fixed by setting a fixed height of 48px on the input adornment.

Context

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 1.0.0-beta.33 |
| React | 16.2.0 |
| browser | IE11 |
| etc | |

bug 馃悰 TextField

Most helpful comment

I find that adding width: 100% to the HTML input element fix this.

See sandbox https://codesandbox.io/s/zqz6nyxvr3

Screen shot in IE 11:

image

All 9 comments

It's working on Material-UI side on IE 11. I'm not sure I can help. Maybe it's a JSS issue?
capture d ecran 2018-02-19 a 14 07 04

Even there, it's right up against the right hand edge of the text field, whereas on chrome there is more padding:

image

The vertical difference is a bigger issue, and seems to be from using a material-ui/Icon rather than something from material-ui-icons?

Oops, this issue hasn't be resolved.

Ok, so the documentation issue with IE11 was solved. Now I can confirm that it's working fine with IE11 with the server side generated CSS and with the client side generated CSS.
IE 11
capture d ecran 2018-02-22 a 23 11 19

on beta.41 IE11 renders as follows:
grafik
seems to be broken again to me

@FranBran It renders correctly on my end (v1.0.0-beta.41):

capture d ecran 2018-04-15 a 16 34 41
capture d ecran 2018-04-15 a 16 35 42

grafik

@oliviertassinari Your screenshot shows the password field adornment in the wrong place - it isn't inside the field.

I find that adding width: 100% to the HTML input element fix this.

See sandbox https://codesandbox.io/s/zqz6nyxvr3

Screen shot in IE 11:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nathanmarks picture nathanmarks  路  100Comments

garygrubb picture garygrubb  路  57Comments

darkowic picture darkowic  路  62Comments

damianobarbati picture damianobarbati  路  55Comments

kybarg picture kybarg  路  164Comments