[Bug]: (Vue 3) @tiptap/vue-3 @mention with no text afterwards inserts a text:null afterwards, breaking re-rendering of the text #6161
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
extension-mention
Version(s)
2.11.5
Bug Description
Using the @tiptap/vue-3 with the extension-mention plugin.
Commenting an @mention with no text after the mention inserts an empty text node, causing the re-rendering of the comment to break
Data structure of the richtext field at time of submit

The comment rendered in the comment thread after submit

The empty text node does fill with data if you resume typing after the @mention. It's just that one half-state of just placed an @mention and "haven't typed anything else afterwards"
Browser Used
Chrome
Code Example URL
https://codesandbox.io/p/devbox/affectionate-fast-5w4rgv
Expected Behavior
Commenting an @mention should render at a space after inserting the mentioned user.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: