From 096fc0e1a17d8bd118a92faa800ef9299a000d7a Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 28 Nov 2022 22:53:41 +0530 Subject: [PATCH] fix: update value without making editable Signed-off-by: Pranav C --- packages/nc-gui/composables/useMultiSelect/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index 3a4e1cbcec..abdc520926 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -258,7 +258,7 @@ export function useMultiSelect( if (rowObj.row[columnObj.title!]) { clipboardContext = { value: rowObj.row[columnObj.title!], - uidt: columnObj.uidt, + uidt: columnObj.uidt as UITypes, } } else { clipboardContext = null @@ -266,14 +266,15 @@ export function useMultiSelect( await copyValue() break case 86: + // const clipboardText = await getClipboardData() if (clipboardContext) { rowObj.row[columnObj.title!] = convertCellData({ value: clipboardContext.value, from: clipboardContext.uidt, - to: columnObj.uidt, + to: columnObj.uidt as UITypes, }) e.preventDefault() - makeEditable(rowObj, columnObj) + // makeEditable(rowObj, columnObj) syncCellData?.(selectedCell) } else { clearCell(selectedCell as { row: number; col: number }, true)