forked from TFMM/silent-auction
fix: use dropdownParent: body in TomSelect to fix visibility issues
This commit is contained in:
@@ -50,11 +50,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Force immediate initialization of TomSelect for this page to bypass component/stack issues
|
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
console.log("Forcing TomSelect init...");
|
|
||||||
document.querySelectorAll('select').forEach(function(el) {
|
document.querySelectorAll('select').forEach(function(el) {
|
||||||
new TomSelect(el, {
|
new TomSelect(el, {
|
||||||
|
dropdownParent: 'body',
|
||||||
create: false,
|
create: false,
|
||||||
sortField: { field: 'text', direction: 'asc' }
|
sortField: { field: 'text', direction: 'asc' }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user