fix: closes #14039, only keep chat input in view on the chats page

This commit is contained in:
Barış Soner Uşaklı
2026-03-03 09:26:54 -05:00
parent 9b22d144cc
commit 44434b0d3f

View File

@@ -110,7 +110,7 @@ define('forum/chats/messages', [
messages.scrollToBottomAfterImageLoad(chatContentEl);
const $composer = chatContentEl.siblings('[component="chat/composer"]');
if ($composer.length) {
if ($composer.length && ajaxify.data?.template?.chats) {
$composer[0].scrollIntoView(true);
}
}