Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite scroll not working when mat-option is added inside of a div element #34

Open
Khushbu-2112 opened this issue Apr 29, 2022 · 0 comments

Comments

@Khushbu-2112
Copy link

Khushbu-2112 commented Apr 29, 2022

Below is how I'm using infinite scroll with mat-select:

I've checked and found that when mat-options are put inside of div onscroll stops working.

<div class="general-input-block filter">
    <label>Amenities</label>
    <mat-select msInfiniteScroll (infiniteScroll)="loadAmenities()" 
      panelClass="general-select" [(value)]="selectedAmenities" class="input"
      placeholder="Select Amenity" (selectionChange)="loadReservations();" multiple>
       <div class="select-scroll-block select-scroll-block-amenity select-options-block checkbox-dropdown">
        <mat-option [value]="amenity.id" *ngFor="let amenity of amenities">
          {{ amenity.name }}
        </mat-option>
      </div>
    </mat-select>
  </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant