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

[PRO]: unselectThread is not working #5579

Closed
1 task done
goktugkoksal opened this issue Sep 2, 2024 · 1 comment
Closed
1 task done

[PRO]: unselectThread is not working #5579

goktugkoksal opened this issue Sep 2, 2024 · 1 comment
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

Comments

@goktugkoksal
Copy link

Affected Packages

@tiptap-pro/extension-comments

Version(s)

2.11.2

Description of the Bug

unselectThread is not working

const unSelectThread = useCallback(() => { editor.commands.unselectThread(); }, [editor]);

I tried code above but it is not doing anything

Browser Used

Chrome

Code Example (Preferred)

No response

Expected Behavior

I expect to unselect thread

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@goktugkoksal goktugkoksal added 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 labels Sep 2, 2024
@goktugkoksal
Copy link
Author

I fixed it by selecting thread by dummy id

code is given below

const unSelectThread = useCallback(() => { editor.chain().selectThread({ id: "0" }).run(); setSelectedThread(null); }, [editor]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: Done
Development

No branches or pull requests

1 participant