Semantic-ui: [Dropdown] Selected multiple options are hidden (2.2.14)

Created on 29 Jan 2018  路  22Comments  路  Source: Semantic-Org/Semantic-UI

I've used to generate dropdowns from HTML in my forms, but Semantic 2.2.14 has a critical bug: selected options are hidden (but they are still considered as selected if you submit a form):

https://jsfiddle.net/3LaahL7e/1/

Confirmed Bug High Priority

Most helpful comment

Will address in next patch.

All 22 comments

I just noticed this same bug, seems to be javascript related.
When using the old 2.2.13 library, the options are visible again.

Seem to be introduced by 0fa58217adef109e22faa3722d2d4f30bef71ac5.

I am suffering from this issue. This bug seems critical and needs a hot fix.

+1

I think I have the same symptom after upgrading to 2.2.14: Selected options (stored in the input tag's value attribute) are not displayed as preselected in the input field anymore. The input field appears empty.

+1

+1

I noticed this problem as well. After downgrading to 2.2.12 pre-selected options are displayed properly!

I create pull request for this issue. #6169

Semantic-Org, thanks for the new 2.3.0 release! There are really good enhancements and features, but we still cannot upgrade because of this one... Have to use 2.2.13.

Are there any other possible work-arounds or tricks? What about some tweaks on the dropdown JS components when initializing them?

@hammy2899 could you help label this bug? This looks quite critical. Thanks a lot!

+1

Will address in next patch.

@jlukic Excited!

Just met the same problem, and found that it was caused by the change from if(module.has.label(value)) to if(module.has.value(value)) introduced in 0fa5821. Reverting this line is enough to fix it. But I'm not sure why it's introduced and whether reverting is appropriate or not.

Anyway, I hope that 2.3.1 can come soon.

+1

I'll have time to address this issue, this sunday. Thanks for your patience.

This should be fixed in 0e5c824, with a tiny change.

Labels were checking if the dropdown value already was set (for dupe matching) but because of the order of operations with initializing multi selects from <select> this would always prevent labels from being drawn.

This is fixed in 2.3.1 releasing tonight

I am also running into this problem, my pre-selected options are not showing. any workaround available

subramn - it has been fixed in 2.3.1

https://github.com/Semantic-Org/Semantic-UI/issues/6123#issuecomment-374072333

Was this page helpful?
0 / 5 - 0 ratings

Related issues

batata004 picture batata004  路  3Comments

mixerp picture mixerp  路  3Comments

miguelmota picture miguelmota  路  3Comments

zhaoyao91 picture zhaoyao91  路  3Comments

vinhtq picture vinhtq  路  3Comments