We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 189cfb7 commit 1c9c6a7Copy full SHA for 1c9c6a7
src/components/SelectionList/BaseSelectionList.tsx
@@ -324,6 +324,9 @@ function BaseSelectionList<TItem extends ListItem>(
324
if (hasKeyBeenPressed.current) {
325
return;
326
}
327
+
328
+ // We need to track whether a key has been pressed to enable focus syncing only if a key has been pressed.
329
+ // This is to avoid the default behavior of web showing blue border on click of items after a page refresh.
330
hasKeyBeenPressed.current = true;
331
}, []);
332
0 commit comments