Open jay8t6 opened 8 years ago
try setting contentElement.selected
to null
. Seemed to work for me. What you're doing, is changing the selected
property of the paper-listbox
element, since paper-dropdown-menu
doesn't have a selected
property.
Pretty strange that there is no programmatic way to select an item - would this not be considered to be a desirable thing?
add selected to the paper-listbox and update the selected value to the index value you want selected.
<paper-listbox selected="{{selected}}">
this.selected = 2;
that worked for me...
How do you reset paper-dropdown-menu to its original state?
I tried setting the selected property to null, that doesnt seem to work.