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. 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) {
this.syncData()
} 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() {
return this.column.uidt === 'Attachment'
},
isCurrency() {
return this.column.uidt == 'Currency'
}
}

Loading…
Cancel
Save