button: momentary: accept undefined value
This commit is contained in:
parent
5ecab00cec
commit
7da90e07e1
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ class Button extends Widget {
|
|||
|
||||
newstate = 0
|
||||
|
||||
} else if (mode === 'momentary' && v === null) {
|
||||
} else if (mode === 'momentary' && (v === null || v === undefined)) {
|
||||
|
||||
newstate = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue