Skip to content

Node.js based forum software built for the modern web

fix: don't trigger quick search if val doesn't change

Barış Soner Uşaklıd6c2764fe7b8
diff --git a/public/src/app.js b/public/src/app.js
index 2a111b911d..7674c9dc2d 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -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');