* Ignore events which don't change text input - fixes #1134 * Fix bind
This commit is contained in:
parent
0645c2a726
commit
233cb95289
@ -150,8 +150,8 @@ TextSearchFacet.prototype._initializeUI = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._elmts.input.bind("keyup change input",function(evt) {
|
this._elmts.input.bind("keyup change input",function(evt) {
|
||||||
// Ignore non-character keyup changes
|
// Ignore events which don't change our input value
|
||||||
if(evt.type === "keyup" && (this.value === self._query || this.value === '' && !self._query)) {
|
if(this.value === self._query || this.value === '' && !self._query) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self._query = this.value;
|
self._query = this.value;
|
||||||
@ -232,4 +232,4 @@ TextSearchFacet.prototype._updateRest = function() {
|
|||||||
var textSearchFacetCounterForLabels = 0;
|
var textSearchFacetCounterForLabels = 0;
|
||||||
TextSearchFacet.prototype._uniqueIdForLabels = function() {
|
TextSearchFacet.prototype._uniqueIdForLabels = function() {
|
||||||
return textSearchFacetCounterForLabels++;
|
return textSearchFacetCounterForLabels++;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user