Skip to content

Commit 46dd425

Browse files
authored
refactor: improve tree code (ant-design#56919)
1 parent 58b451d commit 46dd425

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

components/tree/Tree.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,7 @@ const Tree = React.forwardRef<RcTree, TreeProps>((props, ref) => {
251251
});
252252

253253
const newProps = {
254-
...props,
255-
checkable,
256-
selectable,
257-
showIcon,
258-
motion,
259-
blockNode,
260-
disabled: mergedDisabled,
254+
...mergedProps,
261255
showLine: Boolean(showLine),
262256
dropIndicatorRender,
263257
};

0 commit comments

Comments
 (0)