Merge pull request #972 from gideonthomas/issue896

Fix #896 - TextSearchFacet refreshes unnecessarily
This commit is contained in:
Tom Morris 2015-04-20 21:25:40 -04:00
commit 9f0afcfc00

View File

@ -128,6 +128,10 @@ TextSearchFacet.prototype._initializeUI = function() {
}
elmts.input.bind("keyup change input",function(evt) {
// Ignore non-character keyup changes
if(evt.type === "keyup" && (this.value === self._query || this.value === '' && !self._query)) {
return;
}
self._query = this.value;
self._scheduleUpdate();
}).focus();