diff --git a/CHANGELOG.md b/CHANGELOG.md index 9784fca7..a7332da9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/client/widgets/basics/menu-base.js b/src/client/widgets/basics/menu-base.js index b653982f..c5b2dd61 100644 --- a/src/client/widgets/basics/menu-base.js +++ b/src/client/widgets/basics/menu-base.js @@ -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, '')) } }