Skip to content

Commit

Permalink
fix(tree): 修复Tree active事件中actived值相反(#3110) (#3134)
Browse files Browse the repository at this point in the history
* fix(tree): 修复Tree active事件中actived值相反(#3110)

closed #3110

* fix(tree): 修复Tree active事件中actived值相反(#3110)

closed #3110

* fix(tree): 修复Tree active事件中actived值相反(#3110)

closed #3110
  • Loading branch information
gaoachao authored Jul 25, 2023
1 parent d83cc3e commit 12486ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tree/useTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default function useTree(props: TdTreeProps) {
if (shouldActive) {
const tnode = getNode(treeStore.value, node);
const actived = node.setActived(!tnode.isActived());
ctx.node.actived = actived.includes(ctx.node.value);
setInnerActived(actived, ctx);
}

Expand Down

0 comments on commit 12486ae

Please sign in to comment.