Skip to content

Commit 3763416

Browse files
committed
lazy focus listening
1 parent a07b3ed commit 3763416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useRovingCellRef.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export function useRovingCellRef(isSelected: boolean) {
2626
return {
2727
ref: isSelected ? ref : undefined,
2828
tabIndex: isFocused ? 0 : -1,
29-
onFocus
29+
onFocus: isSelected ? onFocus : undefined
3030
};
3131
}

0 commit comments

Comments
 (0)