Skip to content

Commit

Permalink
Merge branch 'release/2.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilujD committed Jun 2, 2017
2 parents 7f64656 + 6c067a5 commit 2a34ce9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 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.3",
"version": "2.0.4",
"authors": [
"Julien Collard <[email protected]> (http://neilujd.com)"
],
Expand Down
30 changes: 15 additions & 15 deletions paper-autocomplete-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,21 +536,7 @@
* @type Object
* @readOnly
*/
_itemTemplateClass: {
type: Object,
readOnly: true,
value: function() {
var template = Polymer.dom(this).querySelector('template:not(#defaultTemplate)');
var dataHost = this.parentNode;

if (!template) {
template = this.$.defaultTemplate;
dataHost = this;
}

return Polymer.Templatize.templatize(template, dataHost);
}
},
_itemTemplateClass: Object,

/**
* permit to hide the loading bar
Expand Down Expand Up @@ -583,6 +569,18 @@
}
},

ready: function () {
var template = Polymer.dom(this).querySelector('template:not(#defaultTemplate)');
var dataHost = this.parentNode;

if (!template) {
template = this.$.defaultTemplate;
dataHost = this;
}

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

_onItemTap: function (e, detail) {
this.set('selectedItem', e.model.item);
},
Expand Down Expand Up @@ -636,6 +634,8 @@
return;
}

this.value = this.value || "";

if (this.value.length < this.firstRequestStart) return;

var that = this;
Expand Down

0 comments on commit 2a34ce9

Please sign in to comment.