assets/javascripts/materialize/forms.js in materialize-sass-1.0.0.rc1 vs assets/javascripts/materialize/forms.js in materialize-sass-1.0.0.rc2
- old
+ new
@@ -159,11 +159,10 @@
// Reset select (after native reset)
setTimeout(function () {
formReset.find('select').each(function () {
// check if initialized
if (this.M_FormSelect) {
- var reset_text = $(this).find('option[selected]').text();
- $(this).siblings('input.select-dropdown')[0].value = reset_text;
+ $(this).trigger('change');
}
});
}, 0);
}
});