Skip to content

Commit 1f7c8fa

Browse files
committed
fix: support DS translation modal dropdowns
1 parent 17f2b0f commit 1f7c8fa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/bundle/Resources/public/js/scripts/admin.location.add.translation.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@
1818
};
1919

2020
doc.querySelectorAll('.ibexa-translation__language-wrapper--language').forEach((select) => {
21-
const dropdown = select.closest('.ibexa-dropdown');
21+
const dropdown = select.closest('.ibexa-dropdown, .ids-dropdown');
2222
const observer = new MutationObserver(() => toggleBtnDisabledState(select));
2323

2424
toggleBtnDisabledState(select);
2525
select.addEventListener('change', ({ target }) => toggleBtnDisabledState(target), false);
2626

27+
if (!dropdown) {
28+
return;
29+
}
30+
2731
observer.observe(dropdown, observerConfig);
2832
});
2933
})(window, window.document);

0 commit comments

Comments
 (0)