diff --git a/core/package-lock.json b/core/package-lock.json index 103d97b7e4..1cf9280254 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -10999,4 +10999,4 @@ } } } -} +} \ No newline at end of file diff --git a/core/src/components/refresher/refresher.tsx b/core/src/components/refresher/refresher.tsx index 9f9c9cb3d1..8da96f7eda 100644 --- a/core/src/components/refresher/refresher.tsx +++ b/core/src/components/refresher/refresher.tsx @@ -94,7 +94,7 @@ export class Refresher { */ @Event() ionStart!: EventEmitter; - constructor() { + componentWillLoad() { this.gestureConfig = { 'canStart': this.canStart.bind(this), 'onStart': this.onStart.bind(this), @@ -106,7 +106,7 @@ export class Refresher { 'passive': false, 'direction': 'y', 'threshold': 0, - 'attachTo': 'window' + 'attachTo': this.el.closest('ion-content') }; }