Skip to content

Commit

Permalink
Fixed #15550 - Table | Custom sort in table not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Jul 10, 2024
1 parent e804cd6 commit 23bed7b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1555,9 +1555,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
this.restoringSort = false;
}

if (this.lazy) {
this.onLazyLoad.emit(this.createLazyLoadMetadata());
} else if (this.value) {
this.lazy && this.onLazyLoad.emit(this.createLazyLoadMetadata());

if (this.value) {
if (this.customSort) {
this.sortFunction.emit({
data: this.value,
Expand Down Expand Up @@ -1605,9 +1605,8 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
}

if (this.multiSortMeta) {
if (this.lazy) {
this.onLazyLoad.emit(this.createLazyLoadMetadata());
} else if (this.value) {
this.lazy && this.onLazyLoad.emit(this.createLazyLoadMetadata());
if (this.value) {
if (this.customSort) {
this.sortFunction.emit({
data: this.value,
Expand Down

0 comments on commit 23bed7b

Please sign in to comment.