menu/dropdown: display label when value is undefined
This commit is contained in:
parent
fd9f703bcf
commit
5c6d065f9b
2 changed files with 3 additions and 2 deletions
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
- bug fixes
|
||||
- matrix: property resolution issue with object/array items in `props`
|
||||
- bypass client option `nofocus=1` when the editor is enabled
|
||||
- bypass client option `nofocus=1` when the editor is enabled
|
||||
- menu/dropdown: display label when value is undefined
|
||||
|
||||
- misc
|
||||
- updated midi bridge: provide more information when loading fails; may fix some compatibility issue on windows
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class MenuBase extends Widget {
|
|||
if (i > -1 && string) {
|
||||
this.text.innerHTML = iconify(String(string).replace(/%value/g, typeof this.value === 'string' ? this.value : JSON.stringify(this.value)).replace(/%key/g, this.keys[i]))
|
||||
} else {
|
||||
this.text.innerHTML = ''
|
||||
this.text.innerHTML = iconify(String(string).replace(/%value/g, '').replace(/%key/g, ''))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue