ng-mat-select-infinite-scroll icon indicating copy to clipboard operation
ng-mat-select-infinite-scroll copied to clipboard

Support for MatAutocomplete

Open lolo101 opened this issue 4 years ago • 1 comments

Hi

MatSelect and MatAutocomplete are very similar elements and I would expect to use this directive with MatAutocomplete. Here is my code :

    <mat-autocomplete
      msInfiniteScroll
      (infiniteScroll)="nextBatch()"
      [complete]="endOfOptions"
    >
      <mat-option *ngFor="let option of optionsBatch$ | async" [value]="option">
        {{option}}
      </mat-option>
    </mat-autocomplete>

Unfortunately the nextBatch function gets called only once but not when scrolling. I can never go beyond the 1st batch.

Is it possible to add support for MatAutocomplete ?

Thx

lolo101 avatar Aug 27 '20 14:08 lolo101

Hi, I also think about it and found this. Maybe this is the way to go: https://github.com/bithost-gmbh/ngx-mat-select-search-example/tree/master/src/app/examples/08-infinite-scroll-example

Lexanius

Lexanius avatar Sep 29 '20 15:09 Lexanius