button: avoid loop on tap release
This commit is contained in:
parent
2402ad11ed
commit
06e64e9c5b
1 changed files with 2 additions and 2 deletions
|
|
@ -158,8 +158,8 @@ class Button extends Widget {
|
|||
if (options.send) this.sendValue()
|
||||
if (options.sync) this.changed(options)
|
||||
|
||||
if (newstate && this.getProp('mode') === 'tap') {
|
||||
this.setValue(this.getProp('off'), {sync: false, send: false})
|
||||
if (newstate && this.getProp('mode') === 'tap' && !options.tapRelease) {
|
||||
this.setValue(this.getProp('off'), {sync: false, send: false, tapRelease: true})
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue