advanced syntax: when editing VAR{} default value, make sure to update other properties using that VAR

This commit is contained in:
jean-emmanuel 2021-05-06 14:33:38 +02:00
parent 5744b33daf
commit 9d74c0e279

View file

@ -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