You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!!!
The text was updated successfully, but these errors were encountered:
jlukic
changed the title
Selection Dropdown "set selected" does not work for empty ('') value (using placeholder: false)
[Dropdown] "set selected" does not work for empty ('') value (using placeholder: false)
Aug 6, 2015
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!!!
The text was updated successfully, but these errors were encountered: