fix links sticking to mentionsline
This commit is contained in:
parent
f16658adfc
commit
8cc1ad67df
3 changed files with 10 additions and 3 deletions
|
@ -121,6 +121,13 @@ export default Vue.component('RichContent', {
|
|||
// in MentionsLine
|
||||
return currentMentions !== null ? item.trim() : item
|
||||
}
|
||||
// We add space with mentionsLine, otherwise non-text elements will
|
||||
// stick to them.
|
||||
if (currentMentions !== null) {
|
||||
// single whitespace trim
|
||||
item = item[0].match(/\s/) ? item.slice(1) : item
|
||||
}
|
||||
|
||||
currentMentions = null
|
||||
if (item.includes(':')) {
|
||||
item = ['', processTextForEmoji(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue