[PRO]: hoverThread and leaveThread not working in Svelte or Vue #6242
Labels
Category: Pro
The issue or pull request is related to the pro packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
extension-comments
Version(s)
2.17.6
Description of the Bug
Using the functions from the documentation to handle hover events raises an error in Svelte:
The example provided in for Vue in the docs is also failing with the same error when hovering a thread.

I tried passing an array of ids instead of a single one. The error mentioned disappeared but now nothing happens.
Browser Used
Chrome
Code Example (Preferred)
https://tiptap.dev/docs/comments/getting-started/install#integrating-the-comments-extension
Expected Behavior
Get the thread content wrapped in a
.tiptap-thread--hovered
class in the editor.Additional Context (Optional)
The example for React uses the utils functions from the Tiptap library
hoverThread
andhoverOffThread
and it works. After inspecting this functions I found:threadMouseOver
andthreadMouseOut
) but it passes an array of thread IDs, instead of a single id (as incorrectly shown in the docs).TCollabThread['id']
.Dependency Updates
The text was updated successfully, but these errors were encountered: