dipson88 / treeselectjs

Treeselect on vanilla JS
MIT License
83 stars 15 forks source link

Treeselect behaves odd in Shadow DOM #104

Open realGriss opened 4 months ago

realGriss commented 4 months ago

Hi,

The Treeselect component is not functioning properly within the Shadow DOM. When clicking on the input, the list immediately closes. Clicking the arrow to open the dropdown displays the list, but it closes instantly upon selection. Additionally, performing a search and selecting an option causes the list to close and the search to be lost.

You can see the issue demonstrated in this JSFiddle:

https://jsfiddle.net/p1wv9zbt/2/