Skip to content

Commit bb0468e

Browse files
authored
fix(module: select): issue with nzScrollToBottom while display scaling (#8355)
1 parent 9cc44f8 commit bb0468e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/select/option-container.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class NzOptionContainerComponent implements OnChanges, AfterViewInit {
132132

133133
onScrolledIndexChange(index: number): void {
134134
this.scrolledIndex = index;
135-
if (index === this.listOfContainerItem.length - this.maxItemLength) {
135+
if (index === this.listOfContainerItem.length - this.maxItemLength - 1) {
136136
this.scrollToBottom.emit();
137137
}
138138
}

0 commit comments

Comments
 (0)