diff --git a/CHANGELOG.md b/CHANGELOG.md index f634f95c..483f28bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - bug fixes - firefox: `onTouch` error when the cursor goes outside the page + - dropdown: label not initialized until a value is set - client - add `title` client option diff --git a/src/client/widgets/basics/dropdown.js b/src/client/widgets/basics/dropdown.js index bb1a2769..36a99e66 100644 --- a/src/client/widgets/basics/dropdown.js +++ b/src/client/widgets/basics/dropdown.js @@ -83,6 +83,8 @@ class Dropdown extends MenuBase { `) } + this.setValue(this.value) + } setValue(v,options={}) { @@ -120,7 +122,9 @@ class Dropdown extends MenuBase { this.parseValues() this.setValue(this.value) return - + case 'label': + this.setLabel() + return } return ret @@ -130,7 +134,8 @@ class Dropdown extends MenuBase { } Dropdown.dynamicProps = Dropdown.prototype.constructor.dynamicProps.concat( - 'values' + 'values', + 'label' )