mkhairi / materialize-sass

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

Fixes #142 by adding "ready" listener #145

Closed benaubin closed 7 years ago

eiwi1101 commented 7 years ago

Just my $0.02, it seems a bit unstable that the updateTextFields function is not defined until the page is loaded. This will help stabilize it for people who aren't using Turbolinks, but I think a more stable approach would be to define this outside the ready callback, and simply call it once in the ready callback for default initialization of forms.

benaubin commented 7 years ago

Definitely agree. This is just a faster change that doesn't require me to understand all of the reprucutuons of refactoring the entire file.