Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Dropdown] default selected not working when having useLabels: false

Open MartHage opened this issue 6 years ago • 4 comments

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/

MartHage avatar Mar 22 '18 08:03 MartHage

Can you create a JSFiddle to replicate this issue?

y0hami avatar Mar 22 '18 09:03 y0hami

Of course, see my comment

MartHage avatar Mar 22 '18 09:03 MartHage

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

somenugget avatar Mar 22 '18 14:03 somenugget

This is fixed in the community fork Fomantic-UI See your adjusted jsfiddle here https://jsfiddle.net/lubber/qvm7182b/

lubber-de avatar Aug 27 '21 21:08 lubber-de