mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
1
core/src/components.d.ts
vendored
1
core/src/components.d.ts
vendored
@ -3947,6 +3947,7 @@ declare global {
|
||||
* If true, the menu is disabled. Default `false`.
|
||||
*/
|
||||
'disabled': boolean;
|
||||
'getWidth': () => number;
|
||||
'isActive': () => boolean;
|
||||
'isOpen': () => boolean;
|
||||
/**
|
||||
|
||||
@ -98,12 +98,7 @@ export class Refresher {
|
||||
console.error('Make sure you use: <ion-refresher slot="fixed">');
|
||||
return;
|
||||
}
|
||||
const parentElement = this.el.parentElement;
|
||||
if (!parentElement) {
|
||||
console.error('ion-refresher is not attached');
|
||||
return;
|
||||
}
|
||||
const contentEl = parentElement.querySelector('ion-content');
|
||||
const contentEl = this.el.closest('ion-content');
|
||||
if (contentEl) {
|
||||
await contentEl.componentOnReady();
|
||||
this.scrollEl = contentEl.getScrollElement();
|
||||
|
||||
Reference in New Issue
Block a user