Normalize pulldown option handling to data attribute selector
This commit is contained in:
@@ -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) => {
|
option.addEventListener('click', (event) => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const pulldownDemo = option.closest('.sg-pulldown-demo');
|
const pulldownDemo = option.closest('.sg-pulldown-demo');
|
||||||
|
|||||||
Reference in New Issue
Block a user