Skip to content

Commit 4cee513

Browse files
authored
Merge pull request #7295 from nextcloud/backport/7292/stable30
[stable30] fix: comments with mentions cant be submitted
2 parents bb2b6c0 + 8621714 commit 4cee513

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)