diff --git a/src/components/card/CommentForm.vue b/src/components/card/CommentForm.vue index 8f73a721d..5b6837b9e 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 + '" ')