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
|
|
@ -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