Fix #896 - TextSearchFacet refreshes unnecessarily

This commit is contained in:
Gideon Thomas 2015-04-18 15:48:35 -04:00
parent cdb74ca8ae
commit 79ba2c9152

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();