From 9d74c0e279068c971f8841306abcdcfd8d980097 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 6 May 2021 14:33:38 +0200 Subject: [PATCH] advanced syntax: when editing VAR{} default value, make sure to update other properties using that VAR --- src/client/widgets/common/widget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index a4fe4598..6491f684 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -657,6 +657,9 @@ class Widget extends EventEmitter { ) { this.variables[name].default = value this.variables[name].value = value + if (this.variables[name].propNames.length > 1) { + this.updateProps(this.variables[name].propNames.filter(x=>x!==propName)) + } } var r = this.variables[name].value