Skip to content

Commit

Permalink
Merge pull request #356 from SaraMZoorob/patch-1
Browse files Browse the repository at this point in the history
fix: [onKeydown] cannot read properties of undefined reading startsWith
  • Loading branch information
nick-keller authored Nov 27, 2024
2 parents 0ab04b7 + 07fbe12 commit f227436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataSheetGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ export const DataSheetGrid = React.memo(
}
}

if (event.key.startsWith('Arrow') || event.key === 'Tab') {
if (event.key?.startsWith('Arrow') || event.key === 'Tab') {
if (editing && columns[activeCell.col + 1].disableKeys) {
return
}
Expand Down

0 comments on commit f227436

Please sign in to comment.