clone: subscribe to prop-changed to update inner clone

This commit is contained in:
jean-emmanuel 2018-10-19 10:16:59 +02:00
parent 64b6b20aae
commit 407b90427a

View file

@ -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() {