Browse Source

fix: selected range anchor

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5847/head
mertmit 1 year ago
parent
commit
ffff6f73df
  1. 4
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -278,7 +278,9 @@ export function useMultiSelect(
setTimeout(() => {
// if shift key is pressed, don't change the active cell
if (event.shiftKey) return
makeActive(selectedRange.start.row, selectedRange.start.col)
if (selectedRange._start) {
makeActive(selectedRange._start.row, selectedRange._start.col)
}
}, 0)
// if the editEnabled is false, prevent selecting text on mouseUp

Loading…
Cancel
Save