Skip to content

Commit

Permalink
fix infinite scroll example
Browse files Browse the repository at this point in the history
fixes #253
  • Loading branch information
macjohnny committed Aug 12, 2020
1 parent 38b2aea commit 2d86def
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class InfiniteScrollExampleComponent implements OnInit, OnDestroy {
const selectOpenChange$ = this.infiniteScrollSelect.openedChange;
combineLatest([selectOpenChange$, searchValueChange$])
.pipe(
filter(([isOpen, _]) => isOpen === true),
filter(([isOpen, _]) => isOpen === true && !this.ctrl.value),
takeUntil(this._onDestroy)
)
.subscribe(([_, value]) => this.onSearchChange(value));
Expand Down

0 comments on commit 2d86def

Please sign in to comment.