-
-
Notifications
You must be signed in to change notification settings - Fork 539
Slash command menu closes immediately after typing / in new block when using Yjs-based collaboration #1620
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
Comments
Hi @miloszglodkowski can you give me a bit more information here on what you are seeing, since I can't seem to reproduce on our demo https://www.blocknotejs.org/ which should have the same sort of set up. A screen recording would be ideal to see if it breaks in a specific situation |
Also, please update to the latest version of blocknote as I made a number of fixes in the past week |
Hi @nperez0111 thanks for your prompt answer. Here is requested video: https://www.loom.com/share/c93cbfc6f0ef491bb31dcad9f2e6ac5a?sid=f0752410-2b3c-4df5-a85e-8bd4a22dcad2 Here is a code to replicate the exact setup from video:
Thanks! |
I'm not able to reproduce on this example @miloszglodkowski https://www.blocknotejs.org/examples/collaboration/partykit Could you maybe be on an older version of blocknote? What version are you on right now? The latest, atm, is 0.29.1 |
Hi @nperez0111 I was pretty sure I was already on the latest version, but it turned out I was still on 0.28.0. My apologies for the oversight! Just updated to 0.29.1, and I can confirm the issue is now resolved, the slash menu stays open as expected. Thank you for the quick support and fixes! 🙌 |
When using collaboration with Yjs providers (e.g., HocuspocusProvider, YPartyKitProvider), typing / as the first character in a new block opens the slash command menu briefly, but it immediately disappears.
This happens consistently with any provider, even with no backend/server connection, so it's clearly triggered by local Yjs state updates.
Steps to Reproduce
Expected Behavior
The slash menu should remain open after typing /, allowing the user to choose a command.
Root Cause (Suspected)
This behavior occurs even offline, confirming it's not due to syncing or server round-trips
The text was updated successfully, but these errors were encountered: