Skip to content

Commit

Permalink
fix(DataTable): check all pages value null check
Browse files Browse the repository at this point in the history
  • Loading branch information
saverett authored May 16, 2017
1 parent 95ee511 commit 36cd818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni

get allSelected() {
if(this.headerCheckboxToggleAllPages) {
return this.selection && this.selection.length === this.value.length;
return this.selection && this.value && this.selection.length === this.value.length;
}
else {
let val = true;
Expand Down

0 comments on commit 36cd818

Please sign in to comment.