Skip to content

Commit

Permalink
Merge pull request #57 from software-mansion-labs/@filip-solecki/idea…
Browse files Browse the repository at this point in the history
…l-nav-merge-issues-3

Fix active workspace state (212,211)
  • Loading branch information
filip-solecki authored Jan 31, 2024
2 parents acd6fa9 + 6ee3a1d commit 8401a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/WorkspaceSwitcherPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ function WorkspaceSwitcherPage({policies}) {
showTitleTooltip={false}
contentContainerStyles={[styles.pt0, styles.mt0]}
textIconLeft={MagnifyingGlass}
// It has to be set to null or -1 to avoid focus on any element at the beggining
initiallyFocusedOptionKey={null}
// Null is to avoid selecting unfocused option when Global selected, undefined is to focus selected workspace
initiallyFocusedOptionKey={!activeWorkspaceID ? null : undefined}
/>
) : (
<WorkspaceCardCreateAWorkspace />
Expand Down

0 comments on commit 8401a04

Please sign in to comment.