We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cee3d81 + 958a704 commit 1eb27d2Copy full SHA for 1eb27d2
.changeset/neat-cooks-turn.md
@@ -0,0 +1,5 @@
1
+---
2
+'@platejs/dnd': patch
3
4
+
5
+Fix: Drop line is not visible when hovering white space inside the editor
packages/dnd/src/DndPlugin.tsx
@@ -96,7 +96,10 @@ export const DndPlugin = createTPlatePlugin<DndConfig>({
96
if (e.target instanceof Node) {
97
const editorDOMNode = editor.api.toDOMNode(editor);
98
99
- if (editorDOMNode && !editorDOMNode.contains(e.target)) {
+ if (
100
+ editorDOMNode &&
101
+ !(e.target === editorDOMNode || editorDOMNode.contains(e.target))
102
+ ) {
103
setOption('dropTarget', undefined);
104
}
105
0 commit comments