Skip to content

Commit

Permalink
fix: activeChange resize
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed May 28, 2020
1 parent d5ab530 commit 2de19e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
outline: none;
cursor: pointer;
position: relative;
font-weight: lighter;

&-with-remove {
padding-right: 32px;
Expand All @@ -86,6 +87,11 @@
&:focus {
background: rgba(0, 0, 255, 0.1);
}

&-active {
padding-left: 30px;
font-weight: bolder;
}
}

&-ink-bar {
Expand Down
2 changes: 1 addition & 1 deletion src/TabNavList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function TabNavList(props: TabNavListProps, ref: React.Ref<HTMLDivElement>) {
// Should recalculate when rtl changed
useEffect(() => {
onListHolderResize();
}, [rtl, tabBarGutter]);
}, [rtl, tabBarGutter, activeKey]);

// ========================= Render ========================
const hasDropdown = !!hiddenTabs.length;
Expand Down

1 comment on commit 2de19e2

@vercel
Copy link

@vercel vercel bot commented on 2de19e2 May 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.