Skip to content

Commit

Permalink
fix(Tree):修复树组件拖拽后展开收起图标问题
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Apr 1, 2024
1 parent 18c055f commit 4ab29c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tree/TreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,7 @@ const TreeItem = forwardRef(
className={classNames(treeClassNames.treeNode, {
[treeClassNames.treeNodeOpen]:
node.expanded &&
(typeof node.data[childrenKey] === 'boolean'
? node.data[childrenKey]
: node.data[childrenKey] !== undefined),
(typeof node[childrenKey] === 'boolean' ? node[childrenKey] : node[childrenKey] !== undefined),
[treeClassNames.actived]: node.isActivable() ? node.actived : false,
[treeClassNames.disabled]: node.isDisabled(),
[treeClassNames.treeNodeDraggable]: node.isDraggable(),
Expand Down

0 comments on commit 4ab29c6

Please sign in to comment.