From ae9fa8aac15dc9b7c76dfb8bdfb08b38bb76c69c Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 14 Sep 2026 16:08:15 +0200 Subject: [PATCH] Fix: unselect previously selected rows on programmatically selection --- public/js/components/Dashboard/WidgetAdmin.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/js/components/Dashboard/WidgetAdmin.js b/public/js/components/Dashboard/WidgetAdmin.js index 0b04c7b7e..c6de68368 100644 --- a/public/js/components/Dashboard/WidgetAdmin.js +++ b/public/js/components/Dashboard/WidgetAdmin.js @@ -45,6 +45,13 @@ export default { this.$refs.list.$refs.table.tabulator .updateOrAddData([this.originalData]) .then(res => { + const widget_id = res[0].getData().widget_id; + let selected = this.$refs.list.$refs.table.tabulator.getSelectedRows(); + selected.forEach(row => { + if (row.getData().widget_id != widget_id) + row.deselect(); + }); + res[0].select(); }) .catch(this.$fhcAlert.handleSystemError);