Skip to content

Commit 804e1d8

Browse files
committed
component.Base: get parent() does not properly return the parentComponent config #6541
1 parent 7b70638 commit 804e1d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/component/Base.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ class Component extends Base {
451451
get parent() {
452452
let me = this;
453453

454-
return me.parentComponent || me.parentId === 'document.body' ? null : Neo.getComponent(me.parentId)
454+
return me.parentComponent || (me.parentId === 'document.body' ? null : Neo.getComponent(me.parentId))
455455
}
456456

457457
/**

0 commit comments

Comments
 (0)