clone: use children list to disable edition instead of querying the DOM
This commit is contained in:
parent
3e87c2f8ca
commit
1d05bcbbeb
1 changed files with 3 additions and 1 deletions
|
|
@ -158,7 +158,9 @@ class Clone extends Container {
|
|||
}
|
||||
|
||||
|
||||
DOM.each(this.widget, '.widget', (el)=>{el.classList.add('not-editable')})
|
||||
for (var i = 0; i < this.children.length; i++) {
|
||||
this.children[i].container.classList.add('not-editable')
|
||||
}
|
||||
|
||||
// listen for cloneTarget's deletion
|
||||
// if it is just edited, its recreation will be catched by the global 'widget-created' event handler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue