Fix #896 - TextSearchFacet refreshes unnecessarily
This commit is contained in:
parent
cdb74ca8ae
commit
79ba2c9152
@ -128,6 +128,10 @@ TextSearchFacet.prototype._initializeUI = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
elmts.input.bind("keyup change input",function(evt) {
|
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._query = this.value;
|
||||||
self._scheduleUpdate();
|
self._scheduleUpdate();
|
||||||
}).focus();
|
}).focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user