Browse Source

Made changes to chatcontainer, still facing issue with only reading out the newest message

pull/3469/head
melghali 3 years ago
parent
commit
2e2335c1e3
  1. BIN
      owncast.mp4
  2. 7
      web/components/chat/ChatContainer/ChatContainer.tsx

BIN
owncast.mp4

Binary file not shown.

7
web/components/chat/ChatContainer/ChatContainer.tsx

@ -274,6 +274,8 @@ export const ChatContainer: FC<ChatContainerProps> = ({ @@ -274,6 +274,8 @@ export const ChatContainer: FC<ChatContainerProps> = ({
setShowScrollToBottomButton(true);
}
}}
//aria-live="polite"
//role="log"
/>
{showScrollToBottomButton && (
<ScrollToBotBtn
@ -337,10 +339,13 @@ export const ChatContainer: FC<ChatContainerProps> = ({ @@ -337,10 +339,13 @@ export const ChatContainer: FC<ChatContainerProps> = ({
)}
>
<div
aria-live="polite"
id="chat-container"
className={styles.chatContainer}
style={desktop && { width: `${defaultChatWidth}px` }}
>
role = "log"
>
{MessagesTable}
{showInput && (
<div className={styles.chatTextField}>

Loading…
Cancel
Save