Skip to content

Commit 8621714

Browse files
grnd-altbackportbot[bot]
authored andcommitted
fix: comments with mentions cant be submitted
Signed-off-by: grnd-alt <github@belakkaf.net>
1 parent f044267 commit 8621714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/card/CommentForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default {
125125
if (mention.attributes['data-at-embedded'].value === 'true') {
126126
mentionValue = mention.parentNode.parentNode.querySelector('.user-bubble__wrapper').attributes['data-mention-id'].value
127127
} else {
128-
mentionValue = mention.firstChild.attributes['data-mention-id'].value
128+
mentionValue = mention.firstElementChild.attributes['data-mention-id'].value
129129
}
130130
if (mentionValue.indexOf(' ') !== -1) {
131131
mention.replaceWith(' @"' + mentionValue + '" ')

0 commit comments

Comments
 (0)