Skip to content

[Dropdown] "set selected" does not work for empty ('') value (using placeholder: false) #2637

Closed
@michtill

Description

http://jsfiddle.net/y7axjw2y/2/

I am using .ui.selection.dropdown with placeholder:false to have the empty value option in the list.
User can select it to set value ''.
But I am not able to set this option in code. In fact the component is not able to do it it self on initiate.
If I set any other value as the value of hidden input it is selected as option on start and the onchange
event is called on the input. But by using '' for the value='' option it does not work.

Calling .dropdown('set selected', '') does not work.

In fact calling .dropdown('clear') does not work, if there is not the div with class "default text" and any non empty content. <div class="default value"></div> does not work too.

So the empty value option is possible to have in the list now, but it is not fully supported by the component.

In any case thank you for all nice component and this one as well!!!

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions