Normalize pulldown option handling to data attribute selector
This commit is contained in:
1 parent
0868ec8fe0
commit
dee4ce5f55
1 file changed
+1
-1
@@ -856,7 +856,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll('.sg-pulldown-option[data-pulldown-option]').forEach((option) => {
|
||||
document.querySelectorAll('[data-pulldown-option]').forEach((option) => {
|
||||
option.addEventListener('click', (event) => {
|
||||
event.stopPropagation();
|
||||
const pulldownDemo = option.closest('.sg-pulldown-demo');
|
||||
|
||||
Reference in new issue
Block a user