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 4 years ago
parent
commit
6b67e8a003
  1. 6
      packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

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

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

Loading…
Cancel
Save