MDL-75423 output: select_menu label bug fix

- click on the label were not always focusing on the element
This commit is contained in:
Shamim Rezaie 2022-10-19 13:57:27 +11:00 committed by Mihail Geshoski
parent 5877ae306e
commit 49595ffa2f

View File

@ -127,7 +127,7 @@
var label = document.getElementById('{{baseid}}-label');
if (label) {
label.addEventListener('click', function() {
label.parentElement.querySelector('.dropdown-toggle').focus();
this.parentElement.querySelector('.dropdown-toggle').focus();
});
}
{{/js}}