Skip to content

Commit

Permalink
fix platform selector focus lost on non platform pages
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Feb 13, 2025
1 parent b61fabd commit 70b0d35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/platformSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ export function PlatformSelector({
path.length > '/platforms/'.length
);
const showStoredPlatform =
!isPlatformPage && storedPlatformKey && storedPlatform && path !== '/platforms/';
!open &&
!isPlatformPage &&
storedPlatformKey &&
storedPlatform &&
path !== '/platforms/';

return (
<div>
Expand Down

0 comments on commit 70b0d35

Please sign in to comment.