Skip to content

Commit

Permalink
[hotfix-35] Typeahead feature: tab key to finish typeahead is not wor…
Browse files Browse the repository at this point in the history
…king for json candidates.

- Fix tab key error on Json candidates.
  • Loading branch information
cheonhyangzhang committed Aug 2, 2016
1 parent 5d0261e commit 5100af3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paper-typeahead-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ <h3>{{label}}</h3>
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{
Expand Down

0 comments on commit 5100af3

Please sign in to comment.