debois / elm-mdl

Elm-port of the Material Design Lite CSS/JS library
Apache License 2.0
965 stars 133 forks source link

Textfield label does not disappear when text is entered #279

Closed kittykatattack closed 7 years ago

kittykatattack commented 7 years ago

Hello,

I'm experience this strange effect with 8.1:

screen shot 2017-01-30 at 3 53 23 pm

Here's the code that produces this:

mdlTextfield id msg =
      Textfield.render MDL [ id ] model.mdl
      [ Textfield.autofocus
      , Textfield.maxlength 1000 
      , Textfield.label "Enter words here..."
      , Options.on "input" (Json.map msg targetValue)
      , Options.input
        [ -- css "font-size" "1.3em"
        ]
      ]
      []

Has anyone else experienced this? It might just be something quirky with my installation... ?

nilsga commented 7 years ago

Sounds like it could be a similar issue to https://github.com/debois/elm-mdl/issues/278

Matsebassen commented 7 years ago

I'm having the same issue. It's very strange, I hope there will come a fix for this. And yes, it's similar to the issue with floating labels

aforemny commented 7 years ago

I will close here. Continuation (and fix) in #333. Thanks for all the input on this!