Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tabs): 修复activeId为一个不存在的值或空值,下划线显示不对的问题(#2939) #2940

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/eight-poets-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

fix(tabs): 修复 activeId 为一个不存在的值或空值,下划线显示不对的问题
5 changes: 5 additions & 0 deletions .changeset/sweet-garlics-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/tabs": patch
---

fix: 修复 activeId 为一个不存在的值或空值,下划线显示不对的问题
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