assets/javascripts/materialize/forms.js in materialize-sass-1.0.0.rc2 vs assets/javascripts/materialize/forms.js in materialize-sass-1.0.0

- old
+ new

@@ -126,11 +126,11 @@ $textarea.css('height', $textarea.data('original-height') + 'px'); } $textarea.data('previous-length', $textarea[0].value.length); }; - $(document).on('ready turbolinks:load', function () { + $(document).ready(function () { // Text based inputs var input_selector = 'input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea'; // Add active if form auto complete $(document).on('change', input_selector, function () { @@ -139,10 +139,10 @@ } M.validate_field($(this)); }); // Add active if input element has been pre-populated on document ready - $(document).on('ready turbolinks:load', function () { + $(document).ready(function () { M.updateTextFields(); }); // HTML DOM FORM RESET handling $(document).on('reset', function (e) {