led, text, variable: value not synchronized between different clients

This commit is contained in:
jean-emmanuel 2023-07-03 12:31:41 +02:00
parent d00b22d35e
commit 86f80b0265
4 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@
- bug fixes
- textarea: escape key not restoring previous value
- scripting: `setFocus(id)` not affecting textarea widgets
- led, text, variable: value not synchronized between different clients
## 1.25.1

View file

@ -58,6 +58,7 @@ module.exports = class Led extends StaticProperties(Widget, {bypass: true, inter
if (options.sync && ret !== false) this.changed(options)
if (options.send) this.sendValue(null, {syncOnly: true})
}

View file

@ -65,6 +65,7 @@ module.exports = class Text extends StaticProperties(Widget, {bypass: true, inte
}
if (options.sync) this.changed(options)
if (options.send) this.sendValue(null, {syncOnly: true})
}

View file

@ -34,6 +34,7 @@ module.exports = class Variable extends StaticProperties(Widget, {interaction: f
this.value = v
if (options.sync) this.changed(options)
if (options.send) this.sendValue(null, {syncOnly: true})
}