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

fix(bubble-menu): fix debounce not working with collab #3956

Merged
merged 1 commit into from Apr 12, 2023

Conversation

bdbch
Copy link
Contributor

@bdbch bdbch commented Apr 12, 2023

Please describe your changes

This PR should close #3953 via checking if changes were made to the doc/selection and exiting before clearing the callback timeout.

How did you accomplish your changes

Add a simple check before clearing debounced timeouts if the doc was changed.

How have you tested your changes

I created a local demo with collab/cursors and a bubble menu and tested to create selections on both clients - worked fine, also with collab and collab cursors. the bubble menu delay was also working fine.

How can we verify your changes

Follow the same steps as above

Remarks

The additional file changes were made to:

  1. Test yjs via webrtc locally
  2. Add auto formatting for eslint in js/jsx files

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

@bdbch bdbch requested a review from svenadlung April 12, 2023 12:42
@bdbch bdbch self-assigned this Apr 12, 2023
@netlify
Copy link

netlify bot commented Apr 12, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit f639216
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/6436a739cb036500089b0431
😎 Deploy Preview https://deploy-preview-3956--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@bdbch bdbch merged commit e8cef04 into develop Apr 12, 2023
15 checks passed
@bdbch bdbch deleted the feature/fix-bubble-menu-debounce-collab branch April 12, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: BubbleMenu is disappeared when use CollaborationCursor
2 participants