tleunen / react-mdl

React Components for Material Design Lite
https://tleunen.github.io/react-mdl/
MIT License
1.76k stars 255 forks source link

[Textfield] floatingLabel not displayed in default size when error is set #416

Open stuikomma opened 7 years ago

stuikomma commented 7 years ago

Take this code snippet. The label will be smaller than the default size (i.e. without an error).

<Textfield
    floatingLabel
    label="Enter some text"
    error="error"
/>

image

As per the Material Design Spec the label should be in the default size. This only affects floating labels. Non-floating ones behave as expected.

Using react-mdl@1.7.2.