Skip to content

Commit f227436

Browse files
authored
Merge pull request #356 from SaraMZoorob/patch-1
fix: [onKeydown] cannot read properties of undefined reading startsWith
2 parents 0ab04b7 + 07fbe12 commit f227436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DataSheetGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ export const DataSheetGrid = React.memo(
13591359
}
13601360
}
13611361

1362-
if (event.key.startsWith('Arrow') || event.key === 'Tab') {
1362+
if (event.key?.startsWith('Arrow') || event.key === 'Tab') {
13631363
if (editing && columns[activeCell.col + 1].disableKeys) {
13641364
return
13651365
}

0 commit comments

Comments
 (0)