Closed clementprevot closed 4 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
blocknote | ✅ Ready (Inspect) | Visit Preview | Jun 5, 2024 10:03am |
@clementprevot is attempting to deploy a commit to the TypeCell Team on Vercel.
A member of the Team first needs to authorize it.
Thanks for your submission! Your solution does indeed fix this issue, though after looking through the code I figured there was some more fundamental issues with it that should also be fixed along with this bug. I created a new PR with those changes, see #814 for that.
This typically can happen when you add
display: flex
to.bn-block-group
with a gap.You can then happen to hover the group itself instead of a block or outer block element
When this happens, the id that would be given to
editor.getBlock
would benull
, making it fail (by the way, adding an optional chaining operator or checking for null/undefined here may be a good idea, let me know if you want me to make a PR for that).