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 4165ba7 commit 7eb8913Copy full SHA for 7eb8913
src/components/chat/chat-message.ts
@@ -102,7 +102,11 @@ export default class IgcChatMessageComponent extends LitElement {
102
}
103
104
private _handleMessageActionClick(event: PointerEvent): void {
105
- const reaction = (event.target as HTMLElement).getAttribute('name');
+ const targetButton = event.target as HTMLElement;
106
+ const button = targetButton.closest('igc-icon-button');
107
+ if (!button) return;
108
+
109
+ const reaction = button.getAttribute('name');
110
this._chatState?.emitEvent('igcMessageReact', {
111
detail: { message: this.message, reaction },
112
});
0 commit comments