mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
805 stars 243 forks source link

turbolinks prevent adding 'active' to the inputs #96

Closed gudata closed 8 years ago

gudata commented 8 years ago

It seems that the active class is not added when you load a page via turbolinks.

http://materializecss.com/forms.html Prefilling Text Inputs If you are having trouble with the labels overlapping prefilled content, Try adding class="active" to the label

it might be my fault because I am using the betas of rails 5

abartier commented 8 years ago

Here I explain how I set validation with rails. This may helps you. https://github.com/mkhairi/materialize-sass/issues/93

gudata commented 8 years ago

Nice solution. Thanks!

abartier commented 8 years ago

You're welcome