button: momentary: prevent unneeded setvalue call
This commit is contained in:
parent
349fafa10c
commit
5e94eb04fb
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ class Button extends Widget {
|
|||
if (newstate && (mode === 'momentary' || mode === 'tap') && !options.tapRelease) {
|
||||
|
||||
// reset value
|
||||
this.setValue(this.getProp('off'), {sync: false, send: false, tapRelease: true})
|
||||
if (mode === 'tap') this.setValue(this.getProp('off'), {sync: false, send: false, tapRelease: true})
|
||||
|
||||
// pulse
|
||||
clearTimeout(this.pulse)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue