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-11-10 22:43:13 +08:00
committed by Mihail Geshoski
parent 5877ae306e
commit 49595ffa2f
+1 -1
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}}