From b5753da3b71f94f8336fc301a8f26a2a4d2b1e16 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 13 Jan 2026 09:24:44 -0800 Subject: [PATCH] Fix dropdown opening on first click of inactive tab --- src-web/components/core/Tabs/Tabs.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src-web/components/core/Tabs/Tabs.tsx b/src-web/components/core/Tabs/Tabs.tsx index 75e651a2..86a76544 100644 --- a/src-web/components/core/Tabs/Tabs.tsx +++ b/src-web/components/core/Tabs/Tabs.tsx @@ -369,7 +369,12 @@ function TabButton({ const btnProps: Partial = { color: 'custom', justify: layout === 'horizontal' ? 'start' : 'center', - onClick: isActive ? undefined : () => onChangeValue(tab.value), + onClick: isActive + ? undefined + : (e: React.MouseEvent) => { + e.preventDefault(); // Prevent dropdown from opening on first click + onChangeValue(tab.value); + }, className: classNames( 'flex items-center rounded whitespace-nowrap', '!px-2 ml-[1px]',