Skip to content

Commit

Permalink
Check valid selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahajan committed Jul 14, 2020
1 parent 9011686 commit 421d265
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ function DataGrid<R, K extends keyof R, SR>({
navigate(event);
break;
default:
handleCellInput(event);
if (isCellWithinBounds(selectedPosition)) {
handleCellInput(event);
}
break;
}
}
Expand Down

0 comments on commit 421d265

Please sign in to comment.