[Select] [duplication of select component when reinitializing it]
I found the same problem here #1891. The solution provided works, but there are duplicate elements in the select component. I have also asked there, but there has been no response.
Here's the screenshot:
does anyone know why this happens?
Hi, the issue was closed thats why we missed it.
You can try checking whether the instance exists before calling initTE again (in side the life cycle method, or other place you are using it)
This could look something like this:
if (!Select.getInstance(mySelectInstance) {
initTE({Select})
}
The initTE method with flag allowReinits creates a new instance for components and does not check whether components were initialized before or not. Checking whether the instance exists before calling it should work here