From 593d5ba934c0d224397432722e1ad64f420f44e8 Mon Sep 17 00:00:00 2001 From: Avan Date: Wed, 31 Jul 2024 12:12:50 +0800 Subject: [PATCH 1/2] fix: rtl mode change not has init animate --- src/components/tabs/tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabs/tabs.tsx b/src/components/tabs/tabs.tsx index 2bd099e135..c60316e390 100644 --- a/src/components/tabs/tabs.tsx +++ b/src/components/tabs/tabs.tsx @@ -215,7 +215,7 @@ export const Tabs: FC = p => { useIsomorphicUpdateLayoutEffect(() => { animate() - }, [activeKey]) + }, [activeKey, isRTL]) useResizeEffect(() => { animate(!x.isAnimating) From 37dde692a09efd05e425f3a18e4b650e5bd7d4a6 Mon Sep 17 00:00:00 2001 From: Avan Date: Wed, 31 Jul 2024 12:23:32 +0800 Subject: [PATCH 2/2] fix: watch activeLineMode change init animate --- src/components/tabs/tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabs/tabs.tsx b/src/components/tabs/tabs.tsx index c60316e390..ff3cec15f1 100644 --- a/src/components/tabs/tabs.tsx +++ b/src/components/tabs/tabs.tsx @@ -215,7 +215,7 @@ export const Tabs: FC = p => { useIsomorphicUpdateLayoutEffect(() => { animate() - }, [activeKey, isRTL]) + }, [activeKey, isRTL, props.activeLineMode]) useResizeEffect(() => { animate(!x.isAnimating)