fix: force initialize tomselect for judgingentry

This commit is contained in:
2026-05-01 14:31:19 -04:00
parent 1ad8f53a95
commit e8a31380f7
+13
View File
@@ -48,5 +48,18 @@
</div> </div>
</div> </div>
</div> </div>
<script>
// Force immediate initialization of TomSelect for this page to bypass component/stack issues
window.addEventListener('load', function() {
console.log("Forcing TomSelect init...");
document.querySelectorAll('select').forEach(function(el) {
new TomSelect(el, {
create: false,
sortField: { field: 'text', direction: 'asc' }
});
});
});
</script>
@endsection @endsection
@include('components.tomselect') @include('components.tomselect')