Semantic-UI
Semantic-UI copied to clipboard
[Dropdown] default selected not working when having useLabels: false
When having useLabels set to false, and initiliazing a dropdown menu through javascript. All values that should be default aren't. However when useLabels is true, they show up as defaults.
Version
2.3.1
Here is a JSFiddle: https://jsfiddle.net/ca0rovs3/387/
Can you create a JSFiddle to replicate this issue?
Of course, see my comment
Dropdown works well without this line in initialize()
. With useLabels: false
and useLabels: true
https://github.com/Semantic-Org/Semantic-UI/blob/master/src/definitions/modules/dropdown.js#L110
This is fixed in the community fork Fomantic-UI See your adjusted jsfiddle here https://jsfiddle.net/lubber/qvm7182b/