From 892aa02ceb606664da492a7ba1cfe33f0b1a25ee Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 22 Apr 2020 13:51:47 +0200 Subject: [PATCH] clone: reset "not-editable" after /EDIT modifications --- src/client/widgets/containers/clone.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/client/widgets/containers/clone.js b/src/client/widgets/containers/clone.js index 7c1ee6a2..76d692b3 100644 --- a/src/client/widgets/containers/clone.js +++ b/src/client/widgets/containers/clone.js @@ -95,6 +95,14 @@ class Clone extends Container() { }, {context: this}) + this.on('widget-created', (e)=>{ + + if (e.widget !== this) { + e.widget.container.classList.add('not-editable') + } + + }) + } getCloneTarget() {