From 7a9b52a3eb68716d1a053e1ddedc7e4d8bc623fa Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Sat, 9 Apr 2022 22:28:42 +0800 Subject: [PATCH] fix(tabs): disabled animated when tabPosition is left/right --- src/Tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tabs.tsx b/src/Tabs.tsx index a5d134cc..91ebed1f 100644 --- a/src/Tabs.tsx +++ b/src/Tabs.tsx @@ -118,7 +118,7 @@ function Tabs( const rtl = direction === 'rtl'; let mergedAnimated: AnimatedConfig | false; - if (animated === false) { + if (animated === false || ['left', 'right'].includes(tabPosition)) { mergedAnimated = { inkBar: false, tabPane: false,