menu/dropdown: minor fixes
This commit is contained in:
parent
9f6bab467c
commit
a01153da61
2 changed files with 15 additions and 5 deletions
|
|
@ -50,7 +50,7 @@ class MenuBase extends Widget {
|
|||
i = this.selected
|
||||
|
||||
if (i > -1 && string) {
|
||||
this.text.innerHTML = iconify(string.replace(/%value/g, JSON.stringify(this.value)).replace(/%key/g, this.keys[i]))
|
||||
this.text.innerHTML = iconify(String(string).replace(/%value/g, JSON.stringify(this.value)).replace(/%key/g, this.keys[i]))
|
||||
} else {
|
||||
this.text.innerHTML = ''
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue