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) {