Material-ui: [SelectField] Invalid height when has floatingLabelText and empty value

Created on 18 May 2016  路  5Comments  路  Source: mui-org/material-ui

example

bug 馃悰 Select v0.x

Most helpful comment

Adding labelStyle={{height: '56px'}} fixed it for me, but super annoying

All 5 comments

+1.

Looks like this is caused by the wrapper div having a height of 72px, and the inner div having a height of 100% and a margin-top of 14px.

Switching margin-top to padding-top should resolve, since padding-top is included within the height whereas margin-top is outside (with box-sizing:border-box).

Unfortunately I'm new to react/material-ui and don't know where I'd look to fix this. I'll keep digging.

Do you guys have any temporary fix for this?

Adding labelStyle={{height: '56px'}} fixed it for me, but super annoying

My issue ended up being invalid alignment for inline forms, this issue.

Was this page helpful?
0 / 5 - 0 ratings