diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c14bc68..447417e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/client/widgets/indicators/led.js b/src/client/widgets/indicators/led.js index f93b0c4d..e3096c7f 100644 --- a/src/client/widgets/indicators/led.js +++ b/src/client/widgets/indicators/led.js @@ -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}) } diff --git a/src/client/widgets/indicators/text.js b/src/client/widgets/indicators/text.js index f2f7e8cd..8cfdbd6e 100644 --- a/src/client/widgets/indicators/text.js +++ b/src/client/widgets/indicators/text.js @@ -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}) } diff --git a/src/client/widgets/scripts/variable.js b/src/client/widgets/scripts/variable.js index c03bf7d5..8918f798 100644 --- a/src/client/widgets/scripts/variable.js +++ b/src/client/widgets/scripts/variable.js @@ -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}) }