Fixed search fields resetting to the last term instead of the query

This commit is contained in:
KoloMl 2024-11-14 22:33:10 +04:00
parent 81493f72be
commit 0523c0f400

View file

@ -25,6 +25,7 @@ function restoreOriginalValue() {
if (isSearchField(inputField) && originalQuery) { if (isSearchField(inputField) && originalQuery) {
inputField.value = originalQuery; inputField.value = originalQuery;
return;
} }
if (originalTerm) { if (originalTerm) {