From 264b30c3ae23f3341ca7b20bc0abb24c24073a7b Mon Sep 17 00:00:00 2001 From: Mehdi Rande Date: Tue, 10 Sep 2024 14:21:13 +0200 Subject: [PATCH] Fix #6371: Add node and expanded data on nodetoggleicon. Nodetoggleicon slot is used to customize expand / collapse and loading icon, but when loading mode is set to icon mode and a node is loading, TreeNode use nodetoggleicon without any props instead of binding node and expanded. This commit bind node and expanded props to nodetoggleicon slot when loading mode is set to icon and node.loading is true. --- packages/primevue/src/tree/TreeNode.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/tree/TreeNode.vue b/packages/primevue/src/tree/TreeNode.vue index 2ff9f61aa..680af609a 100755 --- a/packages/primevue/src/tree/TreeNode.vue +++ b/packages/primevue/src/tree/TreeNode.vue @@ -18,7 +18,7 @@