web/elements: fix select-all not selecting previously unselected rows
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
6ea83edd9f
commit
d861a0cec9
|
@ -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
|
||||||
|
|
Reference in New Issue