diff --git a/CHANGELOG.md b/CHANGELOG.md index 51107fdd..35e1b0a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ - user resources not loading when using an external browser - advanced syntaxes resolution order issue +- advanced syntaxes + - display an error in the console in some unsupported advanced syntaxes use cases + ## 1.26.1 - bug fixes diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 5034a36c..f20539fe 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -925,9 +925,21 @@ class Widget extends EventEmitter { if (!this.isDynamicProp(propName)) { - if ((!widget || !this.contains(widget)) && !(widget === this && updatedProps.length === 1 && updatedProps[0] === 'value')) { + if (widget && this.contains(widget)) { + + this.errorProp(propName, '@{}', `a container can't use its child's properties to define non-dynamic properties.`) + continue + + } else if (widget === this && updatedProps.length === 1 && updatedProps[0] === 'value') { + + this.errorProp(propName, '@{}', `a widget can't use it's own value to define non-dynamic properties.`) + continue + + } else { + reCreate = true break + } } else {