You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using TreeTable, I am implementing a feature where a node toggle event will expand the parent node, as well as the first child node and keeps the other children nodes collapsed.
This works fine when using @nodeSelect, but @nodeExpand does not behave as expected, even though they are assigned to the same event handler:
In this case @nodeSelect is able to change the expandedKeys to toggle the node and its first child, but @nodeExpand doesn't work (i.e. when the user clicks the > toggle icon). It seems they cannot both operate on the same expandedKeys
I think this is a bug in PrimeVue, and the following is an example which uses Toast to print out the expandedKeys.
As you can see here, the onNodeSelect is triggered when the toggle button (>) but the first child is not expanded.
Describe the bug
Using
TreeTable
, I am implementing a feature where a node toggle event will expand the parent node, as well as the first child node and keeps the other children nodes collapsed.This works fine when using
@nodeSelect
, but@nodeExpand
does not behave as expected, even though they are assigned to the same event handler:In this case
@nodeSelect
is able to change theexpandedKeys
to toggle the node and its first child, but @nodeExpand doesn't work (i.e. when the user clicks the>
toggle icon). It seems they cannot both operate on the sameexpandedKeys
I think this is a bug in PrimeVue, and the following is an example which uses Toast to print out the
expandedKeys
.As you can see here, the
onNodeSelect
is triggered when the toggle button (>
) but the first child is not expanded.Reproducer
https://stackblitz.com/edit/gdab7p
PrimeVue version
4.0.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
Mozilla Firefox (latest)
Steps to reproduce the behavior
{'3': true, '3-0', true'}
)>
): results in parent node being expanded, but first child node is not expanded.Expected behavior
Both
@nodeExpand
and@nodeSelect
should behave the same, but only@nodeSelect
does.The text was updated successfully, but these errors were encountered: