applying timeout variance only for regex

This commit is contained in:
kushthedude 2020-03-07 01:56:36 +05:30
parent 620d7672c9
commit 3b2aa2ccd0

View File

@ -202,13 +202,8 @@ TextSearchFacet.prototype._scheduleUpdate = function() {
var self = this; var self = this;
this._timerID = window.setTimeout(function() { this._timerID = window.setTimeout(function() {
self._timerID = null; self._timerID = null;
if(self._config.mode === 'regex') { self._updateRest();
setTimeout(function(){ self._updateRest(); }, 1000); }, self._config.mode === 'regex' ? 1500 : 500);
}
else if (self._config.caseSensitive == true) {
setTimeout(function(){ self._updateRest(); }, 250);
}
}, 500);
} }
}; };