scripting: setVar not affecting all widgets when mutliple widgets match provided id

This commit is contained in:
jean-emmanuel 2022-01-16 20:25:24 +01:00
parent 1ae5a33dcd
commit cfa6bd7645
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,8 @@
- bug fixes
- misc: sending typed arguments (`{type, value}` objects) should override the widget's `typeTags` definition
- multixy: errors when `ephemeral` is `true`
- scripting: `setVar` not affecting all widgets when mutliple widgets match provided id
- widgets
- renamed `script` to `onValue`, `draw` to `onDraw`, `touch` to `onTouch`
- added `onCreate` script property to all widgets

View file

@ -108,7 +108,7 @@ class ScriptVm extends Vm {
Object.keys(widgetManager.idRoute).filter(key => key.match(new RegExp('^' + id.replace(/\*/g, '.*') + '$')))
).filter(w => w !== widget)
} else {
widgets = this.resolveId(id).slice(0, 1)
widgets = this.resolveId(id)
}