From 37dde692a09efd05e425f3a18e4b650e5bd7d4a6 Mon Sep 17 00:00:00 2001 From: Avan Date: Wed, 31 Jul 2024 12:23:32 +0800 Subject: [PATCH] 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)