From d861a0cec9b22f715187b18098dd2a0fbe42a21a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 5 Aug 2021 10:15:03 +0200 Subject: [PATCH] web/elements: fix select-all not selecting previously unselected rows Signed-off-by: Jens Langhammer --- web/src/elements/table/Table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/elements/table/Table.ts b/web/src/elements/table/Table.ts index a73d39ad4..109263212 100644 --- a/web/src/elements/table/Table.ts +++ b/web/src/elements/table/Table.ts @@ -209,7 +209,7 @@ export abstract class Table extends LitElement { ? html` = 0} + .checked=${this.selectedElements.indexOf(item) >= 0} @input=${(ev: InputEvent) => { if ((ev.target as HTMLInputElement).checked) { // Add item to selected