From 66ca87c525e1ca394e27c512dc69539d5e03b893 Mon Sep 17 00:00:00 2001 From: christianrhansen Date: Tue, 5 Nov 2019 12:37:31 +0100 Subject: [PATCH] mosys mobile: existing cell is only selectable when no temporary new cell on grid --- partials/GridEditor.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/partials/GridEditor.vue b/partials/GridEditor.vue index 008d59e..291bdb4 100644 --- a/partials/GridEditor.vue +++ b/partials/GridEditor.vue @@ -649,14 +649,16 @@ } }, touchMobileCell (event, cell) { - Object.keys(this.annotationUIStates).filter((k) => { - if (k === cell._uuid && this.annotationUIStates[k].editing) console.log(k, cell._uuid) - else this.annotationUIStates[k].editing = false - }) - this.annotationUIStates[cell._uuid].editing = !this.annotationUIStates[cell._uuid].editing - this.updateEditingCells() - this.$root.$emit('mosys_saveScrollPosition') - // this.handleCellEditClick(event, annotation) + if (!this.mobileTempCell.onGrid) { + Object.keys(this.annotationUIStates).filter((k) => { + if (k === cell._uuid && this.annotationUIStates[k].editing) console.log(k, cell._uuid) + else this.annotationUIStates[k].editing = false + }) + this.annotationUIStates[cell._uuid].editing = !this.annotationUIStates[cell._uuid].editing + this.updateEditingCells() + this.$root.$emit('mosys_saveScrollPosition') + // this.handleCellEditClick(event, annotation) + } }, handleCellTouch (event, annotation) { if (!this.cachedNewCell) { -- GitLab