Skip to content

Commit 5edeb54

Browse files
fix: Drag preview blocking drops when overlapping the editor (BLO-996) (#2670)
1 parent 666ee1e commit 5edeb54

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/core/src/editor/editor.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
hidden. So setting it to an extremely low value instead makes the element
8181
functionally invisible while not affecting the drag preview itself. */
8282
opacity: 0.001;
83+
/* The element is kept in the DOM after setDragImage captures its snapshot,
84+
so it can overlap the editor and block drops in that area. Disabling
85+
pointer-events lets drag/drop events pass through to the editor while
86+
leaving the captured preview unaffected. */
87+
pointer-events: none;
8388
}
8489

8590
.bn-editor .bn-collaboration-cursor__base {

0 commit comments

Comments
 (0)