Browse Source

fix(gui): avoid toggling editEnabled on mouse down event

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

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

@ -145,14 +145,12 @@ export function useMultiSelect(
return return
} }
editEnabled.value = false
isMouseDown = true isMouseDown = true
selectedRange.startRange({ row, col }) selectedRange.startRange({ row, col })
} }
const handleCellClick = (event: MouseEvent, row: number, col: number) => { const handleCellClick = (event: MouseEvent, row: number, col: number) => {
isMouseDown = true isMouseDown = true
editEnabled.value = false
selectedRange.startRange({ row, col }) selectedRange.startRange({ row, col })
selectedRange.endRange({ row, col }) selectedRange.endRange({ row, col })
makeActive(row, col) makeActive(row, col)

Loading…
Cancel
Save