MDL-57680 form autocomplete: fix triggering change event
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -145,7 +145,10 @@ function($, log, str, templates, notification, LoadingIcon) {
|
||||
if (typeof M.core_formchangechecker !== 'undefined') {
|
||||
M.core_formchangechecker.set_form_changed();
|
||||
}
|
||||
originalSelect.change();
|
||||
|
||||
// Note, jQuery .change() was not working here. Better to
|
||||
// use plain JavaScript anyway.
|
||||
originalSelect[0].dispatchEvent(new Event('change'));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user