Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: (Vue 3) @tiptap/vue-3 @mention with no text afterwards inserts a text:null afterwards, breaking re-rendering of the text #6161

Open
1 task done
drewclem opened this issue Mar 6, 2025 · 0 comments
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

Comments

@drewclem
Copy link

drewclem commented Mar 6, 2025

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

Image

Data structure of the richtext field at time of submit
Image

The comment rendered in the comment thread after submit
Image

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

  • Yes, I've updated all my dependencies.
@drewclem drewclem added 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 labels Mar 6, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Tiptap: Issues Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant