From 9d64ad3aa9849012698c7bb86a6d96039c9d781e Mon Sep 17 00:00:00 2001 From: foscili-smeup Date: Tue, 29 Jun 2021 14:08:55 +0200 Subject: [PATCH 1/2] Bugfix: editable text field in cell update was testing/updating initialValue instead of value. --- .../src/components/kup-data-table/kup-data-table.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/ketchup/src/components/kup-data-table/kup-data-table.tsx b/packages/ketchup/src/components/kup-data-table/kup-data-table.tsx index f4e9b199d2..0861558a0f 100644 --- a/packages/ketchup/src/components/kup-data-table/kup-data-table.tsx +++ b/packages/ketchup/src/components/kup-data-table/kup-data-table.tsx @@ -2741,12 +2741,14 @@ export class KupDataTable { cell.data['checked'] = value === 'on' ? false : true; } } else { - cell.obj.k = value; + if (cell.obj) { + cell.obj.k = value; + } cell.value = value; cell.displayedValue = null; cell.displayedValue = getCellValueForDisplay(column, cell); - if (cell.data && cell.data['initialValue'] !== undefined) { - cell.data['initialValue'] = value; + if (cell.data && cell.data['value'] !== undefined) { + cell.data['value'] = value; } } this.refresh(); From 612ae24b93eefac03ae4b4e4adf80dfb998698a2 Mon Sep 17 00:00:00 2001 From: foscili-smeup Date: Tue, 29 Jun 2021 15:36:45 +0200 Subject: [PATCH 2/2] ^ version. --- packages/ketchup-showcase/package.json | 4 ++-- packages/ketchup/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ketchup-showcase/package.json b/packages/ketchup-showcase/package.json index ab4a48eea7..3831c655b6 100644 --- a/packages/ketchup-showcase/package.json +++ b/packages/ketchup-showcase/package.json @@ -28,7 +28,7 @@ "@mdi/font": "^2.8.94", "@vaadin/vaadin-upload": "^4.2.2", "element-ui": "^2.4.8", - "ketchup": "^1.0.12", + "ketchup": "^1.0.12.1", "style-loader": "^0.23.1", "stylus": "^0.54.5", "stylus-loader": "^3.0.2", @@ -70,4 +70,4 @@ "vaadin": { "disableUsageStatistics": true } -} \ No newline at end of file +} diff --git a/packages/ketchup/package.json b/packages/ketchup/package.json index f575093010..3b1f39c083 100644 --- a/packages/ketchup/package.json +++ b/packages/ketchup/package.json @@ -1,6 +1,6 @@ { "name": "ketchup", - "version": "1.0.12", + "version": "1.0.12.1", "keywords": [ "Sme.UP", "KetchUP", @@ -82,4 +82,4 @@ "type": "git", "url": "https://github.com/smeup/ketchup.git" } -} \ No newline at end of file +}