AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

[bug]: warning: "Block is not exist.

Open tokenens opened this issue 3 years ago • 1 comments

Describe the bug

When I drag a block to the end, the drag button of this block disappears, and warning: "Block is not exist.",I see in "LeftMenuDraggable.tsx", "handleDragEnd" was not called

To Reproduce

  1. open https://livedemo.affine.pro/AFFiNE/a3007697-7fed-5671-95d8-1159c886a5b4
  2. Click and drag the ⋮ to move this block and to other position
  3. Hover this block, the ⋮ did not appear
  4. in "LeftMenuDraggable.tsx", "handleDragEnd" was not called

Screenshots

telegram-cloud-photo-size-5-6116049132360675731-y telegram-cloud-photo-size-5-6116049132360675732-y telegram-cloud-photo-size-5-6116049132360675744-y

Expected behavior

No response

Platform

MacOS

Browser

Chrome

Additional context

No response

tokenens avatar Dec 16 '22 02:12 tokenens

I've done some testing and I think the cause of the bug may lie in the calculation of which block the mouse is in. But lately I may not have much time to go deeper into the troubleshooting. I'd appreciate it if you could help with this.Here are some thoughts on this bug.

libs/components/editor-plugins/src/menu/left-menu/LeftMenuPlugin.tsx image

libs/components/editor-core/src/editor/editor.ts image

alt1o avatar Dec 16 '22 03:12 alt1o

The Pre Alpha version has been archived, thank you for your continued support, you can fully experience and give feedback on our latest 0.6.0 version https://github.com/toeverything/AFFiNE/releases

tzhangchi avatar Jun 06 '23 07:06 tzhangchi