Skip to content

[BUG] When used with cdk-virtual-scroll-viewport it doesn't display the value #304

@tricasoft

Description

@tricasoft

Describe the bug
When used with cdk-virtual-scroll-viewport with a big list of items, it doesn't display the value in the input after selecting a searched item.

Check the bellow code:
<mat-select formControlName="solCompany" placeholder="Sol Company" #singleSelect1 (selectionChange)="getList()">

<ngx-mat-select-search [formControl]="filterSolString" [placeholderLabel]="'Search Company'">

<cdk-virtual-scroll-viewport [itemSize]="42" [style.height.px]=4*42>
<mat-option [value]="-1">Any
<mat-option *cdkVirtualFor="let company of utils.getObjectKeys(filteredSolCompany | async)" [value]="company">{{companies[company]}}

Expected behavior
Select the item and display it in the input field

Screenshots

Desktop (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions