Skip to content

Commit 95cd38e

Browse files
committed
Fixed form reset handling
1 parent c970aa8 commit 95cd38e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/forms.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@
178178
formReset.find('select').each(function() {
179179
// check if initialized
180180
if (this.M_FormSelect) {
181-
let reset_text = $(this)
182-
.find('option[selected]')
183-
.text();
184-
$(this).siblings('input.select-dropdown')[0].value = reset_text;
181+
$(this).trigger('change');
185182
}
186183
});
187184
}, 0);

0 commit comments

Comments
 (0)