mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(refresher): add warning for required ion-refresher-content
This commit is contained in:
@@ -210,6 +210,9 @@ export class Refresher {
|
||||
console.warn('<ion-refresher> property "' + attrName + '" should now be placed on the inner <ion-refresher-content> component instead of <ion-refresher>. Please review the Refresher docs for API updates.');
|
||||
}
|
||||
});
|
||||
if (!ele.children.length) {
|
||||
console.warn('<ion-refresher> should now have an inner <ion-refresher-content> component. Please review the Refresher docs for API updates.');
|
||||
}
|
||||
}
|
||||
|
||||
private _onStart(ev: TouchEvent): any {
|
||||
|
||||
Reference in New Issue
Block a user