Skip to content

Commit

Permalink
Fix active state (212,211)
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Jan 31, 2024
1 parent d748d01 commit 6ee3a1d
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 @@ -261,8 +261,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 6ee3a1d

Please sign in to comment.