I can't seem to find an easy way to simply turn the autocomplete functionality back on after the autocomplete object has been uninitialized (unInit()).
The init() core function seems like a solution, but it's also responsible for creating wrapper element and moving the selected input inside it, as it's stated in the docs. After a few clicks back & forth (uninit() & then init() again, for instance) we are looking at something like this:
You can set wrapper: false in the root of your autoComplete.js config to prevent creation of the wrapper element. That said, this should probably be fixed properly.
I can't seem to find an easy way to simply turn the autocomplete functionality back on after the autocomplete object has been uninitialized (
unInit()
). Theinit()
core function seems like a solution, but it's also responsible for creating wrapper element and moving the selected input inside it, as it's stated in the docs. After a few clicks back & forth (uninit() & then init() again, for instance) we are looking at something like this:I know there's always a way to solve this by changing my design, or am I missing something here as well?