Use body element as dropdownParent for tomselect elements

This improves UX
This commit is contained in:
Jan Böhmer 2025-09-06 23:32:08 +02:00
parent 2b28aa8ba9
commit fb92db8c05
7 changed files with 11 additions and 4 deletions

View file

@ -44,6 +44,7 @@ export default class extends Controller {
allowEmptyOption: true,
selectOnTab: true,
maxOptions: null,
dropdownParent: 'body',
render: {
item: this.renderItem.bind(this),
@ -108,4 +109,4 @@ export default class extends Controller {
//Destroy the TomSelect instance
this._tomSelect.destroy();
}
}
}