Skip to content

Commit

Permalink
fix(infinite-scroll): infinite scroll event now fired with custom ele…
Browse files Browse the repository at this point in the history
…ments build (#24043)

resolves #24034
  • Loading branch information
liamdebeasi authored Oct 7, 2021
1 parent b2dc338 commit 8a86cfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/components/infinite-scroll/infinite-scroll.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Method, Prop, State, Watch, h, readTask, writeTask } from '@stencil/core';

import { getIonMode } from '../../global/ionic-global';
import { componentOnReady } from '../../utils/helpers';

@Component({
tag: 'ion-infinite-scroll',
Expand Down Expand Up @@ -82,6 +83,7 @@ export class InfiniteScroll implements ComponentInterface {
console.error('<ion-infinite-scroll> must be used inside an <ion-content>');
return;
}
await new Promise(resolve => componentOnReady(contentEl, resolve));
this.scrollEl = await contentEl.getScrollElement();
this.thresholdChanged();
this.disabledChanged();
Expand Down

0 comments on commit 8a86cfb

Please sign in to comment.