Skip to content

Commit 451212a

Browse files
authored
fix platform selector focus loss on non platform pages (#12703)
1 parent 6cae11c commit 451212a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/platformSelector/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ export function PlatformSelector({
127127
path.length > '/platforms/'.length
128128
);
129129
const showStoredPlatform =
130-
!isPlatformPage && storedPlatformKey && storedPlatform && path !== '/platforms/';
130+
!open &&
131+
!isPlatformPage &&
132+
storedPlatformKey &&
133+
storedPlatform &&
134+
path !== '/platforms/';
131135

132136
return (
133137
<div>

0 commit comments

Comments
 (0)