File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
core/src/components/infinite-scroll Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export class InfiniteScroll implements ComponentInterface {
1616 private thrPx = 0 ;
1717 private thrPc = 0 ;
1818 private scrollEl ?: HTMLElement ;
19- private contentEl : HTMLElement | null = null ;
2019
2120 /**
2221 * didFire exists so that ionInfinite
@@ -97,12 +96,12 @@ export class InfiniteScroll implements ComponentInterface {
9796 @Event ( ) ionInfinite ! : EventEmitter < void > ;
9897
9998 async connectedCallback ( ) {
100- this . contentEl = findClosestIonContent ( this . el ) ;
101- if ( ! this . contentEl ) {
99+ const contentEl = findClosestIonContent ( this . el ) ;
100+ if ( ! contentEl ) {
102101 printIonContentErrorMsg ( this . el ) ;
103102 return ;
104103 }
105- this . scrollEl = await getScrollElement ( this . contentEl ) ;
104+ this . scrollEl = await getScrollElement ( contentEl ) ;
106105 this . thresholdChanged ( ) ;
107106 this . disabledChanged ( ) ;
108107 if ( this . position === 'top' ) {
You can’t perform that action at this time.
0 commit comments