clone: subscribe to prop-changed to update inner clone
This commit is contained in:
parent
64b6b20aae
commit
407b90427a
1 changed files with 12 additions and 0 deletions
|
|
@ -69,6 +69,18 @@ class Clone extends Container {
|
|||
|
||||
}, {context: this})
|
||||
|
||||
widgetManager.on('prop-changed', (e)=>{
|
||||
|
||||
if (!this.cloneTarget) return
|
||||
|
||||
if (e.widget === this.cloneTarget || this.cloneTarget.contains(e.widget)) {
|
||||
|
||||
this.updateClone()
|
||||
|
||||
}
|
||||
|
||||
}, {context: this})
|
||||
|
||||
}
|
||||
|
||||
getCloneTarget() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue