Skip to content

Commit

Permalink
allow _selectedItemChanged, otherwise the initial value is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-g committed Jun 11, 2016
1 parent 92dbfda commit c465bbc
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions paper-dropdown-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,17 +354,15 @@
* optional `label` property.
*/
_selectedItemChanged: function(selectedItem) {
if (!this.readonly) {
var value = '';
if (!selectedItem) {
value = '';
} else {
value = selectedItem.label || selectedItem.textContent.trim();
}

this._setValue(value);
this._setSelectedItemLabel(value);
var value = '';
if (!selectedItem) {
value = '';
} else {
value = selectedItem.label || selectedItem.textContent.trim();
}

this._setValue(value);
this._setSelectedItemLabel(value);
},

/**
Expand Down

0 comments on commit c465bbc

Please sign in to comment.