From db3319b0d3baae916099ab9b4f840bd20040f8a6 Mon Sep 17 00:00:00 2001 From: Dominik Reh Date: Sun, 29 Jan 2023 18:43:09 +0100 Subject: [PATCH] Fix long lists not scrolling to top on reset --- javascript/tagAutocomplete.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 5b12fc6..ee94115 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -524,6 +524,9 @@ function addResultsToList(textArea, results, tagword, resetList) { resultsList.appendChild(li); } resultCount = nextLength; + + if (resetList) + resultDiv.scrollTop = 0; } function updateSelectionStyle(textArea, newIndex, oldIndex) {