From a9478c0cdf6331f36d1bc3de684b5f390620d926 Mon Sep 17 00:00:00 2001 From: David Cruz Date: Thu, 10 Nov 2016 15:41:12 -0500 Subject: [PATCH] restore input to default if no element is selected --- paper-dropdown-menu-light.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paper-dropdown-menu-light.html b/paper-dropdown-menu-light.html index 1ffc9f1..1a6e5d5 100644 --- a/paper-dropdown-menu-light.html +++ b/paper-dropdown-menu-light.html @@ -434,7 +434,8 @@ hasContent: { type: Boolean, - readOnly: true + readOnly: true, + observer: '_hasContentChanged' } }, @@ -590,6 +591,12 @@ } this._setHasContent(!!this.value); }, + + _hasContentChanged: function (hasContent) { + if (!hasContent && this.$.input){ + this.$.input.innerHTML = " "; + } + }, }); })();