diff --git a/CHANGELOG.md b/CHANGELOG.md index 90d9e062..032dcbef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - editor: changes applied to wrong widget when clicking on a widget while editing another widget's property - push: allow setting `value` property - allow whitespaces in path for `--custom-module` + - error when changing a property that's inherited by a widget to define its address and at least one non-dynamic property - widgets - sliders: when `steps` is set, scrolling on the widget makes it go directly from one step to another diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index 629818af..74f2cc0d 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -651,7 +651,10 @@ class Widget extends EventEmitter { if (!this.isDynamicProp(propName)) { - reCreate = true + if ((!widget || !this.contains(widget)) && widget !== this && !(widget === this && updatedProps.length === 1 && updatedProps[0] === 'value')) { + reCreate = true + break + } } else { @@ -664,7 +667,7 @@ class Widget extends EventEmitter { } } - if (reCreate && (!widget || !this.contains(widget)) && widget !== this && !(widget === this && updatedProps.length === 1 && updatedProps[0] === 'value')) { + if (reCreate) { return this.reCreateWidget({reCreateOptions: options})