Connect, collaborate, and grow with a community of TypeScript developers
Challenge Left Wrapper Tabs: focus on a TabsTrigger triggers a click which will render the tab (#1228)
Junsu Park6fc63604eb8d
diff --git a/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx b/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsxindex d84a5630..9df7300a 100644--- a/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx+++ b/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx@@ -151,6 +151,9 @@ export function LeftWrapper({ children, challenge, track, expandPanel, isDesktoprouter.push(`/challenge/${challenge.slug}`);isCollapsed && expandPanel();}}+ onFocus={(e) => {+ e.target.click();+ }}value="description">{isIconOnly ? <Text className="h-4 w-4" /> : 'Description'}@@ -165,6 +168,9 @@ export function LeftWrapper({ children, challenge, track, expandPanel, isDesktoprouter.push(`/challenge/${challenge.slug}/solutions`);isCollapsed && expandPanel();}}+ onFocus={(e) => {+ e.target.click();+ }}value="solutions">{isIconOnly ? <FlaskConical className="h-4 w-4" /> : 'Solutions'}@@ -183,6 +189,9 @@ export function LeftWrapper({ children, challenge, track, expandPanel, isDesktoprouter.push(`/challenge/${challenge.slug}/submissions`);isCollapsed && expandPanel();}}+ onFocus={(e) => {+ e.target.click();+ }}value="submissions">{isIconOnly ? <History className="h-4 w-4" /> : 'Submissions'}