mirror of
https://github.com/moodle/moodle.git
synced 2025-07-09 16:36:28 +02:00
javascript lib MDL-23224 dropdown onclick event is not trigger in Chrome
This commit is contained in:
@ -365,7 +365,12 @@ M.util.init_select_autosubmit = function(Y, formid, selectid, nothing) {
|
||||
// event.... usability
|
||||
Y.on('key', processchange, select, 'press:13', form, select.get('selectedIndex'));
|
||||
select.on('blur', processchange, form, select.get('selectedIndex'));
|
||||
select.on('click', processchange, form, select.get('selectedIndex'));
|
||||
//little hack for chrome that need onChange event instead of onClick - see MDL-23224
|
||||
if (Y.UA.webkit) {
|
||||
select.on('change', processchange, form, select.get('selectedIndex'));
|
||||
} else {
|
||||
select.on('click', processchange, form, select.get('selectedIndex'));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user