clone: fix regression not applying not-editable to all children

This commit is contained in:
jean-emmanuel 2018-10-16 16:23:35 +02:00
parent ab0fdb85d9
commit 8de0bb90f7

View file

@ -157,8 +157,8 @@ class Clone extends Container {
}
for (var i = 0; i < this.children.length; i++) {
this.children[i].container.classList.add('not-editable')
for (var w of this.getAllChildren()) {
w.container.classList.add('not-editable')
}
// listen for cloneTarget's deletion