From daa86fa330ccbf88fe3d664ff6ed00f41d80379b Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Thu, 11 Aug 2022 12:53:42 -0700 Subject: [PATCH] Change tabs to keep all individual tab components in the DOM (#743) --- web/components/layout/tabs.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/components/layout/tabs.tsx b/web/components/layout/tabs.tsx index a87c6607..3d72b13c 100644 --- a/web/components/layout/tabs.tsx +++ b/web/components/layout/tabs.tsx @@ -28,7 +28,6 @@ export function ControlledTabs(props: TabProps & { activeIndex: number }) { className, currentPageForAnalytics, } = props - const activeTab = tabs[activeIndex] as Tab | undefined // can be undefined in weird case return ( <> - {activeTab?.content} + {tabs.map((tab, i) => ( +
+ {tab.content} +
+ ))} ) }