Skip to content

Commit

Permalink
fix: watch activeLineMode change init animate
Browse files Browse the repository at this point in the history
  • Loading branch information
Layouwen committed Jul 31, 2024
1 parent 593d5ba commit 37dde69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const Tabs: FC<TabsProps> = p => {

useIsomorphicUpdateLayoutEffect(() => {
animate()
}, [activeKey, isRTL])
}, [activeKey, isRTL, props.activeLineMode])

useResizeEffect(() => {
animate(!x.isAnimating)
Expand Down

0 comments on commit 37dde69

Please sign in to comment.