web/elements: fix select-all not selecting previously unselected rows

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-05 10:15:03 +02:00
parent 6ea83edd9f
commit d861a0cec9
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ export abstract class Table<T> extends LitElement {
? html`<td class="pf-c-table__check" role="cell"> ? html`<td class="pf-c-table__check" role="cell">
<input <input
type="checkbox" type="checkbox"
?checked=${this.selectedElements.indexOf(item) >= 0} .checked=${this.selectedElements.indexOf(item) >= 0}
@input=${(ev: InputEvent) => { @input=${(ev: InputEvent) => {
if ((ev.target as HTMLInputElement).checked) { if ((ev.target as HTMLInputElement).checked) {
// Add item to selected // Add item to selected