From f4132120fb53aadff7d3b3531e096252746cdf5a Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:53:07 +0200 Subject: [PATCH] fix(nc-gui): condition order --- packages/nc-gui/composables/useMultiSelect/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index a3bfd9a13d..6e6db8cbcd 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -125,8 +125,6 @@ export function useMultiSelect( }) const onKeyDown = async (e: KeyboardEvent) => { - if (selected.row === null || selected.col === null) return - if ( !isNaN(selectedRows.startRow) && !isNaN(selectedRows.startCol) && @@ -138,6 +136,8 @@ export function useMultiSelect( selected.col = selectedRows.startCol } + if (selected.row === null || selected.col === null) return + /** on tab key press navigate through cells */ switch (e.key) { case 'Tab':