Browse Source

fix: disable syncDataDebounce for currency field

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1052/head
Wing-Kam Wong 3 years ago
parent
commit
3bffcdb475
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/editableCell.vue
  2. 3
      packages/nc-gui/components/project/spreadsheet/mixins/cell.js

4
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) { if (this.isAttachment || this.isEnum || this.isBoolean || this.isSet || this.isTime || this.isDateTime || this.isDate) {
this.syncData() this.syncData()
} else { } else {
this.syncDataDebounce(this) if (!this.isCurrency) {
this.syncDataDebounce(this)
}
} }
} }
} }

3
packages/nc-gui/components/project/spreadsheet/mixins/cell.js

@ -57,6 +57,9 @@ export default {
}, },
isAttachment() { isAttachment() {
return this.column.uidt === 'Attachment' return this.column.uidt === 'Attachment'
},
isCurrency() {
return this.column.uidt == 'Currency'
} }
} }

Loading…
Cancel
Save