Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Fix collapsed paper-dropdown-menu-light when set with empty value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Torres committed Feb 9, 2018
1 parent 24d0337 commit 1ad4ee8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paper-dropdown-menu-light.html
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,11 @@
_valueChanged: function() {
// Only update if it's actually different.
if (this.$.input && this.$.input.textContent !== this.value) {
this.$.input.textContent = this.value;
if(this.value === undefined || this.value === null || this.value === ''){
this.$.input.innerHTML = ' ';
}else{
this.$.input.textContent = this.value;
}
}
this._setHasContent(!!this.value);
},
Expand Down

0 comments on commit 1ad4ee8

Please sign in to comment.