Skip to content

Commit 1c9c6a7

Browse files
committed
added comment
1 parent 189cfb7 commit 1c9c6a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/SelectionList/BaseSelectionList.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ function BaseSelectionList<TItem extends ListItem>(
324324
if (hasKeyBeenPressed.current) {
325325
return;
326326
}
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.
327330
hasKeyBeenPressed.current = true;
328331
}, []);
329332

0 commit comments

Comments
 (0)