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]',