Normalize pulldown option handling to data attribute selector

This commit is contained in:
2026-05-25 07:50:55 +02:00
parent 0868ec8fe0
commit dee4ce5f55
+1 -1
View File
@@ -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');