Skip to content

[Autocomplete] Error: Tom Select already initialized on this element #2623

Open
@Bartheyrman22

Description

@Bartheyrman22

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions