Disable setting tab when empty (#19315)

## before
<img width="1063" height="520" alt="image"
src="https://github.com/user-attachments/assets/db92432b-a30c-49e8-9246-a09d0815e6c9"
/>


## after
<img width="1049" height="490" alt="image"
src="https://github.com/user-attachments/assets/e926b065-6a65-417b-b802-0e1df6ca638f"
/>
This commit is contained in:
martmull
2026-04-03 17:27:17 +02:00
committed by GitHub
parent d562a384c2
commit f8c3960cf2
8 changed files with 109 additions and 235 deletions
@@ -173,6 +173,7 @@ export const TabList = ({
disabled={tab.disabled ?? loading}
pill={tab.pill}
to={behaveAsLinks ? `#${tab.id}` : undefined}
tooltipContent={tab.tooltipContent}
onClick={
behaveAsLinks
? () => onChangeTab?.(tab.id)
@@ -8,4 +8,5 @@ export type SingleTabProps<T extends string = string> = {
disabled?: boolean;
pill?: string | React.ReactElement;
logo?: string;
tooltipContent?: string;
};