Browse Source

fix: setting entered key value as input

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/341/head
Pranav C 3 years ago
parent
commit
6b67e8a003
  1. 8
      packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

8
packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

@ -430,11 +430,11 @@ export default {
if (this.editEnabled.col != null && this.editEnabled.row != null) {
return;
}
console.log(this.selected, this.data[this.selected.row], this.availableColumns[this.selected.col], '')
this.$set(this.data[this.selected.row].row, this.availableColumns[this.selected.col]._cn, '')
this.editEnabled = {...this.selected}
if(e.key && e.key.length === 1) {
this.$set(this.data[this.selected.row].row, this.availableColumns[this.selected.col]._cn, e.key)
this.editEnabled = {...this.selected}
}
}
}
},
onClickOutside() {

Loading…
Cancel
Save