From d9b5e56072485dd62571fee868a91e115f1cc33a Mon Sep 17 00:00:00 2001 From: thefalconx33 Date: Mon, 5 Aug 2019 14:56:16 +0530 Subject: [PATCH] FIX: Enter pressing on a cell with a value error --- ui/components/controls/Table.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/components/controls/Table.vue b/ui/components/controls/Table.vue index b9472af0..7c50fd74 100644 --- a/ui/components/controls/Table.vue +++ b/ui/components/controls/Table.vue @@ -99,7 +99,8 @@ export default { enterPressOnCell() { const { index, fieldname } = this.currentlyFocused; if (this.isEditing(index, fieldname)) { - this.deactivateEditing(); + // FIX: enter pressing on a cell with a value throws error. + // this.deactivateEditing(); this.activateFocus(index, fieldname); } else { this.activateEditing(index, fieldname); @@ -212,7 +213,8 @@ export default { }; }, activateFocus(i, fieldname) { - this.deactivateEditing(); + // FIX: enter pressing on a cell with a value throws error. + // this.deactivateEditing(); const docfield = this.columns.find(c => c.fieldname === fieldname); this.currentlyFocused = { index: i,