mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(ion-infinite-scroll): Fix error leaving page
This fix [5760](https://github.com/driftyco/ionic/issues/5760)
This commit is contained in:
@ -162,6 +162,7 @@ export class Content extends Ion {
|
||||
this.scrollElement.addEventListener(type, handler);
|
||||
|
||||
return () => {
|
||||
if (!this.scrollElement) { return; }
|
||||
this.scrollElement.removeEventListener(type, handler);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user