Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
b6fab3f613
2 changed files with 3 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ class Toast {
|
|||
|
||||
this.html.classList.add('remove')
|
||||
setTimeout(()=>{
|
||||
el.removeChild(this.html)
|
||||
if (el.contains(this.html)) el.removeChild(this.html)
|
||||
}, 200)
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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