button: regression in push mode (on value not passed to onValue script when triggered from another widget

This commit is contained in:
jean-emmanuel 2022-10-23 10:09:02 +02:00
parent 74198c07d7
commit 6cbddbd2b6
2 changed files with 7 additions and 2 deletions

View file

@ -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')) {