From 7b01a208a2cc31da4ce3ebfdd21d5c0c40db1623 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 22 Dec 2022 16:02:04 +0100 Subject: [PATCH] web/elements: unselect top checkbox in table when not all elements are selected Signed-off-by: Jens Langhammer --- web/src/elements/table/Table.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/elements/table/Table.ts b/web/src/elements/table/Table.ts index bfc0c50cd..0e8e42a03 100644 --- a/web/src/elements/table/Table.ts +++ b/web/src/elements/table/Table.ts @@ -447,6 +447,8 @@ export abstract class Table extends AKElement { name="select-all" type="checkbox" aria-label=${t`Select all rows`} + .checked=${this.selectedElements.length === + this.data?.results.length} @input=${(ev: InputEvent) => { if ((ev.target as HTMLInputElement).checked) { this.selectedElements =