mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Content/list fix
This commit is contained in:
@ -53,10 +53,13 @@ export class Aside {
|
||||
}
|
||||
|
||||
getContentElement() {
|
||||
if(!this.content || !this.content.domElement) {
|
||||
if(!this.content && !this.content.domElement) {
|
||||
console.error('Aside: make sure to specify a content target using #var on the element');
|
||||
return null;
|
||||
}
|
||||
if(this.content instanceof Node) {
|
||||
return this.content;
|
||||
}
|
||||
return this.content.domElement;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user