clone: hot fix @MartinHN #395

This commit is contained in:
jean-emmanuel 2018-10-20 19:49:39 +02:00
parent 09881ed02e
commit 92d7245a58
2 changed files with 2 additions and 5 deletions

View file

@ -44,6 +44,8 @@ class Clone extends Container {
// global listenner to catch cloneTarget's creation if no target is locked
widgetManager.on('widget-created', (e)=>{
if (this.cloneTarget) return
var {id, widget} = e
if (id === this.getProp('widgetId') && this.isValidCloneTarget(widget)) {