forked from TFMM/silent-auction
fix: force initialize tomselect for judgingentry
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user