Fixed a bug where it was possible that the chat interface was not scrolling to the bottom (#133)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-09-08 21:32:02 +02:00
1 parent d7c124926b
commit a5bdb3267b
2 files changed
+8

No files matched your search

@@ -216,6 +216,13 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
// Enable the stream state for the chat component:
this.isStreaming = true;
this.hasUnsavedChanges = true;
if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading)
{
this.mustScrollToBottomAfterRender = true;
this.scrollRenderCountdown = 2;
}
this.StateHasChanged();
// Use the selected provider to get the AI response.