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

@ -42,6 +42,7 @@ export default class extends Controller {
selectOnTab: true,
//This a an ugly solution to disable the delimiter parsing of the TomSelect plugin
delimiter: 'VERY_L0NG_D€LIMITER_WHICH_WILL_NEVER_BE_ENCOUNTERED_IN_A_STRING',
dropdownParent: 'body',
render: {
item: (data, escape) => {
return '<span>' + escape(data.label) + '</span>';