mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(refresher): clean up old css if calling refresh method before native refresher is setup (#22640)
resolves #22636
This commit is contained in:
@ -378,6 +378,15 @@ export class Refresher implements ComponentInterface {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If using non-native refresher before make sure
|
||||||
|
* we clean up any old CSS. This can happen when
|
||||||
|
* a user manually calls the refresh method in a
|
||||||
|
* component create callback before the native
|
||||||
|
* refresher is setup.
|
||||||
|
*/
|
||||||
|
this.setCss(0, '', false, '');
|
||||||
|
|
||||||
this.nativeRefresher = true;
|
this.nativeRefresher = true;
|
||||||
|
|
||||||
const pullingSpinner = this.el.querySelector('ion-refresher-content .refresher-pulling ion-spinner') as HTMLIonSpinnerElement;
|
const pullingSpinner = this.el.querySelector('ion-refresher-content .refresher-pulling ion-spinner') as HTMLIonSpinnerElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user