Files
kontor/kontor-spring/application/frontend/generated/jar-resources/selectConnector.js
T
Thomas Peetz de2f2f34b2
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
setup multi-module project
2026-08-12 15:13:06 +02:00

20 lines
475 B
JavaScript

window.Vaadin.Flow.selectConnector = {}
window.Vaadin.Flow.selectConnector.initLazy = (select) => {
// do not init this connector twice for the given select
if (select.$connector) {
return;
}
select.$connector = {};
select.renderer = (root) => {
const listBox = select.querySelector('vaadin-select-list-box');
if (listBox) {
if (root.firstChild) {
root.removeChild(root.firstChild);
}
root.appendChild(listBox);
}
};
}