diff --git a/apps/client/src/features/search/components/search-result-item.tsx b/apps/client/src/features/search/components/search-result-item.tsx index 24d3472b5..99621a86d 100644 --- a/apps/client/src/features/search/components/search-result-item.tsx +++ b/apps/client/src/features/search/components/search-result-item.tsx @@ -26,6 +26,14 @@ interface SearchResultItemProps { showSpace?: boolean; } +// Spotlight hardcodes tabIndex={-1} after spreading props; a ref wins and +// React never writes -1 back because the prop value never changes +const makeActionTabbable = (el: HTMLElement | null) => { + if (el) { + el.tabIndex = 0; + } +}; + export function SearchResultItem({ result, isAttachmentResult, @@ -46,6 +54,7 @@ export function SearchResultItem({ return (