led, text, variable: value not synchronized between different clients
This commit is contained in:
parent
d00b22d35e
commit
86f80b0265
4 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue