Error when adding a comment with user mention #2418

Closed
opened 2026-03-22 14:06:54 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @maggch97 on GitHub (Nov 18, 2025).

Description

Image

This error is caused by the change of avatar in mention. It seems the customized mention node has some conflict with below hack, but I'm not expert here.

	// This makes the editor trigger its mounted function again which makes it forget every input
	// it currently has in its textarea. This is a counter-hack to a hack inside of vue-easymde
	// which made it impossible to detect change from the outside. Therefore the component would
	// not update if new content from the outside was made available.
	// See https://github.com/NikulinIlya/vue-easymde/issues/3
	editorActive.value = false
	nextTick(() => (editorActive.value = true))

The current customized mention html is also conflict with server's FindMentionedUsersInText, if it's not easy to fix the error. I suggest to revert the avatar change first.

Vikunja Version

latest

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Please select

Screenshots

No response

Originally created by @maggch97 on GitHub (Nov 18, 2025). ### Description <img width="379" height="606" alt="Image" src="https://github.com/user-attachments/assets/08fa78b8-d561-4987-a04d-e4f2bb3e0ada" /> This error is caused by the change of avatar in mention. It seems the customized mention node has some conflict with below hack, but I'm not expert here. ``` // This makes the editor trigger its mounted function again which makes it forget every input // it currently has in its textarea. This is a counter-hack to a hack inside of vue-easymde // which made it impossible to detect change from the outside. Therefore the component would // not update if new content from the outside was made available. // See https://github.com/NikulinIlya/vue-easymde/issues/3 editorActive.value = false nextTick(() => (editorActive.value = true)) ``` The current customized mention html is also conflict with server's `FindMentionedUsersInText`, if it's not easy to fix the error. I suggest to revert the avatar change first. ### Vikunja Version latest ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Please select ### Screenshots _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#2418