debug: update tomselect initialization and check

This commit is contained in:
2026-05-01 12:57:37 -04:00
parent 3cc39c4b3d
commit 762b242046
@@ -3,16 +3,14 @@
<script>
window.addEventListener('load', () => {
document.querySelectorAll('select').forEach((el) => {
if (!el.classList.contains('tomselected')) {
if (!el.classList.contains('ts-hidden-accessible')) {
console.log('Initializing TomSelect on:', el);
new TomSelect(el, {
create: false,
hideSelected: true,
maxOptions: null,
sortField: {
field: "text",
direction: "asc"
},
controlInput: '<input type="text" />'
}
});
}
});