diff --git a/paper-typeahead-input.html b/paper-typeahead-input.html index e3c6136..8f91ba5 100755 --- a/paper-typeahead-input.html +++ b/paper-typeahead-input.html @@ -391,7 +391,8 @@

{{label}}

if (this._typeahead && typeof(this._typeahead)!= 'undefined' && this._typeahead != ''){ e.preventDefault(); if (this.isCandidatesJson == true){ - this.inputObject = this._suggestions[index]; + //if a typeahead is available it's always the first element of the candidates + this.inputObject = this._suggestions[0]; this.inputValue = this._getDisplayValue(this.inputObject); } else{