From c51ddabc97037e6ac62abab0d2f94d92f50d5d7e Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 18 Sep 2023 14:43:05 +0300 Subject: [PATCH] scroll to top when changing emoji search query --- files/assets/js/emoji_modal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index d163c43d8..d8a22c79e 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -387,6 +387,7 @@ function populate_speed_emoji_modal(results, textbox) } emoji_index = 0; + speed_carot_modal.scrollTop = 0; speed_carot_modal.innerHTML = ""; const MAXXX = 50; // Not sure why the results is a Set... but oh well