From 2b4504a0eeabe47e9c71903f7b8b8540b21a9a8a Mon Sep 17 00:00:00 2001 From: Elmar Frank Date: Wed, 18 May 2016 04:05:50 +0200 Subject: [PATCH] initialize inputValue, if inputObject and displayProp are set --- paper-typeahead-input.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-typeahead-input.html b/paper-typeahead-input.html index da4e46d..daf28dc 100755 --- a/paper-typeahead-input.html +++ b/paper-typeahead-input.html @@ -314,6 +314,10 @@

{{label}}

}); var input = Polymer.dom(this.root).querySelector('paper-input'); input.$.input.autocomplete = 'address-level4'; + + if (!this.inputValue && (this.displayProp && typeof(this.displayProp) != 'undefined') && (this.inputObject && typeof(this.inputObject) != 'undefined')) { + this.inputValue = this.inputObject[this.displayProp]; + } }, attached: function() {