mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(gesture): destroy gesture handler when it's done (#17184)
fixes #16433 fixes #16974
This commit is contained in:
@ -120,6 +120,10 @@ export class Refresher implements ComponentInterface {
|
||||
|
||||
componentDidUnload() {
|
||||
this.scrollEl = undefined;
|
||||
if (this.gesture) {
|
||||
this.gesture.destroy();
|
||||
this.gesture = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user