Skip to content

Commit

Permalink
Merge pull request #2607 from XiaoMi/hotfix/tree(#2598)
Browse files Browse the repository at this point in the history
fix(tree): #2598
  • Loading branch information
solarjoker authored Sep 25, 2023
2 parents 875fb3f + 534bfd2 commit a6054b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/flat-chicken-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/tree": patch
---

fix: 修复 onExpand 回调参数只返回了第一个问题
5 changes: 5 additions & 0 deletions .changeset/three-bees-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

Tree fix: 修复 onExpand 回调参数只返回了第一个问题
2 changes: 1 addition & 1 deletion packages/ui/tree/src/hooks/use-expand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const useExpand = (
trySetTransitionData(newTransitionData)
}

tryToggleExpandedIds(Array.from(expandedNodeIdSet))
tryToggleExpandedIds(Array.from(expandedNodeIdSet), expandedNode, shouldExpanded)
},
[tryToggleExpandedIds, flattedData, trySetTransitionData, dequeue]
)
Expand Down

0 comments on commit a6054b1

Please sign in to comment.