Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix: remove autoscroll to readwrite chat embed input field (#3582)

Pratyay Roy44722a62d74d
diff --git a/web/components/chat/ChatTextField/ChatTextField.tsx b/web/components/chat/ChatTextField/ChatTextField.tsx
index 656c864ba1..1183a37b24 100644
--- a/web/components/chat/ChatTextField/ChatTextField.tsx
+++ b/web/components/chat/ChatTextField/ChatTextField.tsx
@@ -228,7 +228,7 @@ export const ChatTextField: FC<ChatTextFieldProps> = ({ defaultText, enabled, fo
if (!focusInput) {
return;
}
- document.getElementById('chat-input-content-editable').focus();
+ document.getElementById('chat-input-content-editable').focus({ preventScroll: true });
}, []);
const getCustomEmoji = async () => {