TreeSelect: appendTo="self" and selectionMode="checkbox" causes panel to close on click on node arrows #4927
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
For my particular development I need to use the appendTo="self" because the tree select component is living within a container which has a position of sticky.
However a weird behavior occurs when interacting with the panel which contains the nodes of the tree select component: clicking on the icon to expand a node or to collapse a node causes the panel to close.
The same happens, sometimes, when clicking on a a checkbox of a node. Sometimes the panel closes when checking and unchecking a checkbox.
Note: this problem might potentially affect other components when used with appendTo="self"
Reproducer
https://stackblitz.com/edit/stcpmv?file=src%2FApp.vue
PrimeVue version
3.40.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
The same behavior happens when:
Expected behavior
Clicking on a checkbox:
The text was updated successfully, but these errors were encountered: