From 706ec5cdb1ce2585c53e40a5619f2a5f5953b19e Mon Sep 17 00:00:00 2001 From: Jingsong Gao Date: Wed, 2 Dec 2020 22:12:32 +0800 Subject: [PATCH] fix(Tree): fix tree drop indicator default direction (#28150) --- components/tree/utils/dropIndicator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tree/utils/dropIndicator.tsx b/components/tree/utils/dropIndicator.tsx index d470870107..a0c8d26dbb 100644 --- a/components/tree/utils/dropIndicator.tsx +++ b/components/tree/utils/dropIndicator.tsx @@ -9,7 +9,7 @@ export default function dropIndicatorRender(props: { prefixCls: string; direction: 'ltr' | 'rtl'; }) { - const { dropPosition, dropLevelOffset, prefixCls, indent, direction } = props; + const { dropPosition, dropLevelOffset, prefixCls, indent, direction = 'ltr' } = props; const startPosition = direction === 'ltr' ? 'left' : 'right'; const endPosition = direction === 'ltr' ? 'right' : 'left'; const style: React.CSSProperties = {