From ca46e0963bcc389f75ad7e591f9f8d7c315a8907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Wed, 17 Feb 2021 10:34:34 +0300 Subject: [PATCH] Fixed #9906 - When table is lazy and having multiSortMeta then "lazyLoad" execute twice --- src/app/components/table/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 297da098fcd..6f789ff0a0c 100755 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -583,7 +583,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable if (simpleChange.multiSortMeta) { this._multiSortMeta = simpleChange.multiSortMeta.currentValue; - if (this.sortMode === 'multiple' && (this.initialized || !this.virtualScroll)) { + if (this.sortMode === 'multiple' && (this.initialized || (!this.lazy && !this.virtualScroll))) { this.sortMultiple(); } }