Open
Description
I get the following error message when moving a TomSelect [Autocomplete] in the DOM.
This after upgrading from 2.21.0
to 2.22.0
(and still present in 2.23.0
)
Error connecting controller
Error: Tom Select already initialized on this element
TomSelect tom-select.ts:104
_default_1_createTomSelect2 controller.js:372
_default_1_createAutocomplete2 controller.js:296
The code I use to move the element:
filterModal.querySelector('.modal-body').appendChild(autocompleteElement)
document.querySelector('body').appendChild(filterModal)