Skip to content

Commit

Permalink
fix(module:select): activated value resetting during load on scroll (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-anton-ko committed Nov 27, 2022
1 parent 2df4860 commit 9e08be9
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 9e08be9

Please sign in to comment.