Skip to content

Commit

Permalink
fix(module:select): activated value resetting during load on scroll (N…
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-anton-ko authored and chenc041 committed Dec 14, 2022
1 parent e331af2 commit 1b49e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/select/select.component.ts
Expand Up @@ -355,6 +355,7 @@ export class NzSelectComponent implements ControlValueAccessor, OnInit, AfterCon
}
const activatedItem =
listOfContainerItem.find(item => item.nzLabel === this.searchValue) ||
listOfContainerItem.find(item => this.compareWith(item.nzValue, this.activatedValue)) ||
listOfContainerItem.find(item => this.compareWith(item.nzValue, this.listOfValue[0])) ||
listOfContainerItem[0];
this.activatedValue = (activatedItem && activatedItem.nzValue) || null;
Expand Down

0 comments on commit 1b49e2c

Please sign in to comment.