Tree: no slot's data for nodetoggleicon template when node is loading #6371
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
In version 3.5, the Tree component had two different slots for managing the toggler icon:
togglericon
: This slot managed the toggler icon, with slot data includingnode
of typeTreeNode
andexpand
of typeboolean
.nodetogglericon
: This slot was only displayed if the node was in "loading" state and inloadingMode
icon, without any slot data.In version 4, these two slots were merged into a single slot,
nodetoggleicon
, which is supposed to accept slot data includingnode
of typeTreeNode
andexpand
of typeboolean
according to the typing.However, when in loading mode is set to icon, no slot data is provided to
nodetoggleicon
when node.loading = true, making it difficult to determine that the node is in loading state.Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-zpn5oz?file=src%2FApp.vue
PrimeVue version
4.0.6
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The node and expanded properties should be provided even in loading state.
The text was updated successfully, but these errors were encountered: