Fixed #10532 - Table Header Checkbox not working when lazy loading enabled

pull/1478/head
Yiğit FINDIKLI 2021-08-24 16:33:58 +03:00
parent ff0370ffc0
commit 593b23af70
1 changed files with 2 additions and 1 deletions

View File

@ -1813,7 +1813,8 @@ export default {
},
allRowsSelected() {
const val = this.frozenValue ? [...this.frozenValue, ...this.processedData]: this.processedData;
return (val && val.length > 0 && this.selection && this.selection.length > 0 && this.selection.length === val.length);
const length = this.lazy ? this.totalRecords : val?.length;
return (val && length > 0 && this.selection && this.selection.length > 0 && this.selection.length === length);
},
attributeSelector() {
return UniqueComponentId();