Skip to content

Commit 87a52f4

Browse files
committed
fix(chat): fix calculating active message index
1 parent aa8d71e commit 87a52f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/chat/chat-message-list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ export default class IgcChatMessageListComponent extends LitElement {
186186
(id) => `message-${id}` === this._activeMessageId
187187
);
188188
let activeMessageId = '';
189+
const key = e.key.toLowerCase();
189190

190-
switch (e.key) {
191+
switch (key) {
191192
case 'home':
192193
activeMessageId = this._chatState.sortedMessagesIds[0];
193194
break;

0 commit comments

Comments
 (0)