Browse Source

fix(gui): skip keydown event handler if active cell value is `NaN`

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4917/head
Pranav C 2 years ago
parent
commit
48f58d730d
  1. 2
      packages/nc-gui/composables/useMultiSelect/index.ts

2
packages/nc-gui/composables/useMultiSelect/index.ts

@ -171,7 +171,7 @@ export function useMultiSelect(
return true return true
} }
if (activeCell.row === null || activeCell.col === null) { if (activeCell.row === null || activeCell.col === null || isNaN(activeCell.row) || isNaN(activeCell.col)) {
return return
} }

Loading…
Cancel
Save