Skip to content

Commit

Permalink
Merge branch 'release/2.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilujD committed Jun 2, 2017
2 parents 2a34ce9 + 7aa4d0b commit 771e686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paper-autocomplete-input",
"version": "2.0.4",
"version": "2.0.5",
"authors": [
"Julien Collard <[email protected]> (http://neilujd.com)"
],
Expand Down
5 changes: 4 additions & 1 deletion paper-autocomplete-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@
value: false
},

_itemTemplate: Object,

/**
* Template for the autocomplete item
*
Expand Down Expand Up @@ -578,6 +580,7 @@
dataHost = this;
}

this.set("_itemTemplate", template);
this.set("_itemTemplateClass", Polymer.Templatize.templatize(template, dataHost));
},

Expand Down Expand Up @@ -744,7 +747,7 @@
* The `_onFocusOut` is used when the user leaves the focus.
*/
_onFocusOut: function (e) {
if (e.relatedTarget && e.relatedTarget.nodeName === this.itemTemplate.content.firstElementChild.nodeName) {
if (e.relatedTarget && e.relatedTarget.nodeName === this._itemTemplate.content.firstElementChild.nodeName) {
e.preventDefault();
return false;
}
Expand Down

0 comments on commit 771e686

Please sign in to comment.