Browse Source

Merge pull request #1052 from nocodb/fix/currency

fix: disable syncDataDebounce for currency field
pull/1053/head
աɨռɢӄաօռɢ 3 years ago committed by GitHub
parent
commit
5f71680f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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