mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: don't trigger quick search if val doesn't change
This commit is contained in:
@@ -583,7 +583,7 @@ app.cacheBuster = null;
|
||||
if (inputEl.val().length < 3 || inputEl.val() === currentVal) {
|
||||
return;
|
||||
}
|
||||
|
||||
currentVal = inputEl.val();
|
||||
searchTimeoutId = setTimeout(function () {
|
||||
if (!inputEl.is(':focus')) {
|
||||
return quickSearchResults.addClass('hidden');
|
||||
|
||||
Reference in New Issue
Block a user