diff --git a/components/select/option-container.component.ts b/components/select/option-container.component.ts index 6803b68ec4a..98630e33b3f 100644 --- a/components/select/option-container.component.ts +++ b/components/select/option-container.component.ts @@ -134,7 +134,7 @@ export class NzOptionContainerComponent implements OnChanges, AfterViewInit { onScrolledIndexChange(index: number): void { this.scrolledIndex = index; - if (index === this.listOfContainerItem.length - this.maxItemLength - 1) { + if (this.listOfContainerItem.length - index <= this.maxItemLength) { this.scrollToBottom.emit(); } }