Skip to content

Commit

Permalink
fix(tabs): 修复activeId为一个不存在的值或空值,下划线显示不对的问题(#2939)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamiao committed Jul 17, 2024
1 parent 5fa1190 commit 0621bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/tabs/src/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const TabList = forwardRef<HTMLDivElement | null, TabListProps>(
direction={direction}
/>
))}
{type === 'line' ? (
{type === 'line' && data.some((item) => item.tabId === activeTabId) ? (
<TabInk
prefixCls={prefixCls}
showHorizontal={showHorizontal}
Expand Down

0 comments on commit 0621bfb

Please sign in to comment.