diff --git a/src/components/FileExplorer/index.tsx b/src/components/FileExplorer/index.tsx index 0640126..05ba77b 100644 --- a/src/components/FileExplorer/index.tsx +++ b/src/components/FileExplorer/index.tsx @@ -194,6 +194,7 @@ function LoadedFileExplorer({ // instead of unmounting, hide the element when not needed, so that the ref can be preserved after search result matches nothing hidden: visibleNodes.nodes.length === 0, })} + tabIndex={-1} // prevent getting focus via tab key on GitHub ref={filesRef} >