From 300eb37dc5e97af289cc1897664fc26433bb3712 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Mon, 27 Oct 2025 19:26:05 +0100 Subject: [PATCH] fix: user mentions broken in card comment Signed-off-by: Luka Trovic --- src/components/card/CommentForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/card/CommentForm.vue b/src/components/card/CommentForm.vue index 8f73a721dc..5b6837b9e4 100644 --- a/src/components/card/CommentForm.vue +++ b/src/components/card/CommentForm.vue @@ -125,7 +125,7 @@ export default { if (mention.attributes['data-at-embedded'].value === 'true') { mentionValue = mention.parentNode.parentNode.querySelector('.user-bubble__wrapper').attributes['data-mention-id'].value } else { - mentionValue = mention.firstChild.attributes['data-mention-id'].value + mentionValue = mention.firstElementChild.attributes['data-mention-id'].value } if (mentionValue.indexOf(' ') !== -1) { mention.replaceWith(' @"' + mentionValue + '" ')