fix(Layout): outside of the screen after setting gutter (#6143)
This commit is contained in:
@@ -33,7 +33,12 @@ export function ChildrenMixin(
|
||||
|
||||
[indexKey]() {
|
||||
this.bindRelation();
|
||||
return this.parent.children.indexOf(this);
|
||||
|
||||
if (this.parent) {
|
||||
return this.parent.children.indexOf(this);
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user