ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

[v2] Ion-infinite-scroll error when leaving page

Open jboothe opened this issue 10 years ago • 21 comments

Just wanted to bring to your attention the following error when leaving a page that uses ion-infinite-scroll:

EXCEPTION: TypeError: Cannot read property 'removeEventListener' of null

  <ion-infinite-scroll (infinite)="doInfiniteScroll($event)">
    <ion-infinite-scroll-content></ion-infinite-scroll-content>
  </ion-infinite-scroll>

Reproduce by:

  1. Add the above code to a list page
  2. Navigate to that page
  3. Navigate to another page
  4. View console output

My system information:

Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.2
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.3.1
Xcode version: Xcode 7.2.1 Build version 7C1002

Not positive, but this could also be related to this similar issue.

jboothe avatar Mar 07 '16 19:03 jboothe

thanks problem fixed....thankyou IIgnatov...

PRATHYUSH-DOM avatar May 25 '16 11:05 PRATHYUSH-DOM