Skip to content

Commit e51b6f4

Browse files
Merge pull request #362 from topcoder-platform/PROD-2010_active-nav-tab-state
PROD-2010 - Navigating to the Work Dashboard from the Tools Menu Does…
2 parents 424880e + 4bf447e commit e51b6f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src-ts/lib/tabs-navbar/TabsNavbar.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const TabsNavbar: FC<TabsNavbarProps> = (props: TabsNavbarProps) => {
5959
if (initialTab && props.tabs.find(tab => tab.id === initialTab)) {
6060
handleActivateTab(initialTab)
6161
} else if (props.defaultActive) {
62+
setTabOpened(props.defaultActive)
6263
updateOffset(props.defaultActive)
6364
}
6465
}, [handleActivateTab, props.defaultActive])

0 commit comments

Comments
 (0)