diff --git a/CHANGELOG.md b/CHANGELOG.md index 27b29e1d..1afc20f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - bug fixes - remote control: add support for icon transform suffixes - editor: fix moving/resing widgets inside folders when using percent units + - clone: `@{parent.propertyName}` blocks in target widget now update when clone's parent property updates - widgets - encoder: add `horizontal` mode diff --git a/src/client/widgets/common/widget.mjs b/src/client/widgets/common/widget.mjs index 28accfe9..2458bcdf 100644 --- a/src/client/widgets/common/widget.mjs +++ b/src/client/widgets/common/widget.mjs @@ -520,6 +520,9 @@ class Widget extends EventEmitter { if (widget === this.parent) { if (type === 'widget-created') return id = 'parent' + } else if (this.parent !== widgetManager && widget === this.parent.parent && this.parent.getProp('type') === 'clone') { + // ignore clone wrapper when resolving properties + id = 'parent' } if (widget === this) id = 'this' @@ -628,7 +631,7 @@ class Widget extends EventEmitter { } - // ignore clone wrapper in @parent stack (https://github.com/jean-emmanuel/open-stage-control/issues/379) + // ignore clone wrapper in @parent stack (https://framagit.org/jean-emmanuel/open-stage-control/-/work_items/379) if (widgets[0] === this.parent && this.parent !== widgetManager && this.parent.getProp('type') === 'clone') widgets = [this.parent.parent] if (storeLinks) {