Skip to content

fix: dragging multiple blocks #170

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

Merged
merged 3 commits into from
Apr 18, 2023
Merged

fix: dragging multiple blocks #170

merged 3 commits into from
Apr 18, 2023

Conversation

PhilipWillms
Copy link
Contributor

Solves: #80

Nodes eq method returns true if the two nodes are either the same instance or if their markup and content is the same. In this case the markup or content of the Nodes do not matter and the condition should only be true when the instance is not the same.

When dropping a selection of multiple blocks outside of the editor the selection type stays the same as it got set here. If the selection gets dragged again and is of type MultipleNodeSelection we can be sure that the user drags multiple blocks at once.

@vercel
Copy link

vercel bot commented Apr 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2023 1:49pm
blocknote-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2023 1:49pm

@YousefED YousefED merged commit c864e1a into TypeCellOS:main Apr 18, 2023
fogle pushed a commit to fogle/BlockNote that referenced this pull request May 20, 2023
* fix: dragging blocks with the same type and content

* fix: dragging blocks after dropped outside the editor

* Code style fix

---------

Co-authored-by: Matthew Lipski <[email protected]>
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.

3 participants