diff --git a/components/select/option-container.component.ts b/components/select/option-container.component.ts index a0f419a0ff6..895bc090057 100644 --- a/components/select/option-container.component.ts +++ b/components/select/option-container.component.ts @@ -35,12 +35,18 @@ import { NzSelectItemInterface, NzSelectModeType } from './select.types'; [class.full-width]="!matchWidth" [itemSize]="itemSize" [maxBufferPx]="itemSize * maxItemLength" - [minBufferPx]="itemSize * maxItemLength" + [minBufferPx]="itemSize" (scrolledIndexChange)="onScrolledIndexChange($event)" [style.height.px]="listOfContainerItem.length * itemSize" [style.max-height.px]="itemSize * maxItemLength" > - + - + diff --git a/components/select/option-item.component.ts b/components/select/option-item.component.ts index c76bdcfd29b..d34f0b1984f 100644 --- a/components/select/option-item.component.ts +++ b/components/select/option-item.component.ts @@ -20,7 +20,10 @@ import { NzSafeAny } from 'ng-zorro-antd/core/types'; selector: 'nz-option-item', template: `
- {{ label }} + {{ label }} + + +