From 3bffcdb4751b49f0a3f1197117c4e100d2913117 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 5 Feb 2022 15:20:14 +0800 Subject: [PATCH] fix: disable syncDataDebounce for currency field Signed-off-by: Wing-Kam Wong --- .../project/spreadsheet/components/editableCell.vue | 4 +++- packages/nc-gui/components/project/spreadsheet/mixins/cell.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue index e0694ed377..89fe2deb24 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue @@ -182,7 +182,9 @@ export default { if (this.isAttachment || this.isEnum || this.isBoolean || this.isSet || this.isTime || this.isDateTime || this.isDate) { this.syncData() } else { - this.syncDataDebounce(this) + if (!this.isCurrency) { + this.syncDataDebounce(this) + } } } } diff --git a/packages/nc-gui/components/project/spreadsheet/mixins/cell.js b/packages/nc-gui/components/project/spreadsheet/mixins/cell.js index 0104f3d41b..517b17f3b7 100644 --- a/packages/nc-gui/components/project/spreadsheet/mixins/cell.js +++ b/packages/nc-gui/components/project/spreadsheet/mixins/cell.js @@ -57,6 +57,9 @@ export default { }, isAttachment() { return this.column.uidt === 'Attachment' + }, + isCurrency() { + return this.column.uidt == 'Currency' } }