fix: refresh tab highlight on horizontal navigation

This commit is contained in:
erdemozyol
2026-04-02 16:58:45 +03:00
parent 1514220ee7
commit 6f4aa02123

View File

@@ -199,7 +199,7 @@ export function Tabs(t0) {
const t12 = 0; const t12 = 0;
const t13 = true; const t13 = true;
const t14 = modalScrollRef ? 0 : undefined; const t14 = modalScrollRef ? 0 : undefined;
const t15 = !hidden && <Box flexDirection="row" gap={1} flexShrink={modalScrollRef ? 0 : undefined}>{title !== undefined && <Text bold={true} color={color}>{title}</Text>}{tabs.map((t16, i) => { const t15 = !hidden && <Box key={`${selectedTabIndex}-${headerFocused ? "focused" : "blurred"}`} flexDirection="row" gap={1} flexShrink={modalScrollRef ? 0 : undefined}>{title !== undefined && <Text bold={true} color={color}>{title}</Text>}{tabs.map((t16, i) => {
const [id, title_0] = t16; const [id, title_0] = t16;
const isCurrent = selectedTabIndex === i; const isCurrent = selectedTabIndex === i;
const hasColorCursor = color && isCurrent && headerFocused; const hasColorCursor = color && isCurrent && headerFocused;