From 1ad4ee868027884bff01189471728324c038f127 Mon Sep 17 00:00:00 2001 From: Mark Torres Date: Fri, 9 Feb 2018 16:19:32 -0500 Subject: [PATCH] Fix collapsed paper-dropdown-menu-light when set with empty value. https://github.com/PolymerElements/paper-dropdown-menu/issues/190 --- paper-dropdown-menu-light.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paper-dropdown-menu-light.html b/paper-dropdown-menu-light.html index 7598829..8818300 100644 --- a/paper-dropdown-menu-light.html +++ b/paper-dropdown-menu-light.html @@ -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); },