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. 2
      packages/nc-gui/components/project/spreadsheet/components/editableCell.vue
  2. 3
      packages/nc-gui/components/project/spreadsheet/mixins/cell.js

2
packages/nc-gui/components/project/spreadsheet/components/editableCell.vue

@ -182,10 +182,12 @@ 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 {
if (!this.isCurrency) {
this.syncDataDebounce(this) this.syncDataDebounce(this)
} }
} }
} }
}
}, },
parentListeners() { parentListeners() {
const $listeners = {} const $listeners = {}

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