clone: fix @{parent} bindings
This commit is contained in:
parent
cdea67809f
commit
e44cf615b5
2 changed files with 5 additions and 1 deletions
|
|
@ -520,6 +520,9 @@ class Widget extends EventEmitter {
|
|||
if (widget === this.parent) {
|
||||
if (type === 'widget-created') return
|
||||
id = 'parent'
|
||||
} else if (this.parent !== widgetManager && widget === this.parent.parent && this.parent.getProp('type') === 'clone') {
|
||||
// ignore clone wrapper when resolving properties
|
||||
id = 'parent'
|
||||
}
|
||||
|
||||
if (widget === this) id = 'this'
|
||||
|
|
@ -628,7 +631,7 @@ class Widget extends EventEmitter {
|
|||
}
|
||||
|
||||
|
||||
// ignore clone wrapper in @parent stack (https://github.com/jean-emmanuel/open-stage-control/issues/379)
|
||||
// ignore clone wrapper in @parent stack (https://framagit.org/jean-emmanuel/open-stage-control/-/work_items/379)
|
||||
if (widgets[0] === this.parent && this.parent !== widgetManager && this.parent.getProp('type') === 'clone') widgets = [this.parent.parent]
|
||||
|
||||
if (storeLinks) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue