We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478cd0d commit 6e4ea5bCopy full SHA for 6e4ea5b
frontend/src/pages/Chat/components/MessageWindow.tsx
@@ -31,13 +31,15 @@ export default function MessageWindow({
31
};
32
33
useEffect(() => {
34
- inputRef.current?.focus();
35
const messagesElement = messagesRef.current;
36
if (messagesElement) {
37
messagesElement.scrollTo({
38
top: messagesElement.scrollHeight,
39
behavior: "smooth",
40
});
+ setTimeout(() => {
41
+ inputRef.current?.focus();
42
+ }, 500);
43
}
44
}, [messages]);
45
@@ -106,9 +108,7 @@ export default function MessageWindow({
106
108
>
107
109
Clear Chat
110
</button>
- <div className="">
- <ExportMessagesButton messages={messages} />
111
- </div>
+ <ExportMessagesButton messages={messages} />
112
</div>
113
) : null}
114
0 commit comments