diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a68d016..e5bcfef4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,16 @@ # Changelog +## 1.18.3 + +- bug fixes + - button: regression in push mode (`on` value not passed to `onValue` script when triggered from another widget) + ## 1.18.2 - bug fixes - canvas: `onTouch` not triggered on iOS when when `event.force`, `event.altitudeAngle` or `event.azimuthAngle` changes - switch: interaction issue when value labels contain icons - - ios: attempt to fix rendering glitch when waking up after sleep + - ios: attempt to fix rendering glitch when waking up after sleep ## 1.18.1 diff --git a/src/client/widgets/basics/button.js b/src/client/widgets/basics/button.js index 194f4174..7688246e 100644 --- a/src/client/widgets/basics/button.js +++ b/src/client/widgets/basics/button.js @@ -226,7 +226,7 @@ class Button extends Widget { return this.getProp(this.decoupledValue.value ? 'on' : 'off') } } else { - return this.getProp(this.touchActive ? 'on' : 'off') + return this.getProp(this.state ? 'on' : 'off') } case 'tap': if (this.localSet || !this.getProp('decoupled')) {