From b56eb053195fa378e0711118cd45b5276fe78169 Mon Sep 17 00:00:00 2001 From: Josemi Date: Tue, 6 Aug 2024 15:53:39 +0200 Subject: [PATCH 1/6] wc: Fix event target in clinical analysis grid actions #TASK-6313 --- src/webcomponents/clinical/clinical-analysis-grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webcomponents/clinical/clinical-analysis-grid.js b/src/webcomponents/clinical/clinical-analysis-grid.js index f0f4977df..bdd9cb010 100644 --- a/src/webcomponents/clinical/clinical-analysis-grid.js +++ b/src/webcomponents/clinical/clinical-analysis-grid.js @@ -436,7 +436,7 @@ export default class ClinicalAnalysisGrid extends LitElement { } async onActionClick(e, _, row) { - const action = e.target.dataset.action?.toLowerCase() || e.detail.action; + const action = e.currentTarget.dataset.action?.toLowerCase() || e.detail.action; switch (action) { case "edit": this.clinicalAnalysisUpdateId = row.id; From c71b3dd16edf98a6b41bf0cccde26e5fccc61106 Mon Sep 17 00:00:00 2001 From: Josemi Date: Tue, 6 Aug 2024 15:54:19 +0200 Subject: [PATCH 2/6] wc: Minor fixes getting action in clinical analysis grid #TASK-6313 --- src/webcomponents/clinical/clinical-analysis-grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webcomponents/clinical/clinical-analysis-grid.js b/src/webcomponents/clinical/clinical-analysis-grid.js index bdd9cb010..f2cde4369 100644 --- a/src/webcomponents/clinical/clinical-analysis-grid.js +++ b/src/webcomponents/clinical/clinical-analysis-grid.js @@ -436,7 +436,7 @@ export default class ClinicalAnalysisGrid extends LitElement { } async onActionClick(e, _, row) { - const action = e.currentTarget.dataset.action?.toLowerCase() || e.detail.action; + const action = e.currentTarget?.dataset?.action?.toLowerCase() || e.detail?.action; switch (action) { case "edit": this.clinicalAnalysisUpdateId = row.id; From 0979e270bd19b21f1010798e8a2bae02466c5b3a Mon Sep 17 00:00:00 2001 From: Josemi Date: Tue, 6 Aug 2024 16:59:57 +0200 Subject: [PATCH 3/6] wc: Fix style of status dropdown in clinical analysis grid #TASK-6313 --- src/webcomponents/clinical/clinical-analysis-grid.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webcomponents/clinical/clinical-analysis-grid.js b/src/webcomponents/clinical/clinical-analysis-grid.js index f2cde4369..ca3c19238 100644 --- a/src/webcomponents/clinical/clinical-analysis-grid.js +++ b/src/webcomponents/clinical/clinical-analysis-grid.js @@ -386,12 +386,12 @@ export default class ClinicalAnalysisGrid extends LitElement {