Skip to content

Commit 6064fa0

Browse files
fix: React custom blocks not valid drop targets (#1511)
* Made React custom blocks valid drop targets * Removed commented out handler
1 parent f413b18 commit 6064fa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/schema/ReactBlockSpec.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function BlockContentWrapper<
7171
return (
7272
// Creates `blockContent` element
7373
<NodeViewWrapper
74+
onDragOver={(event: DragEvent) => event.preventDefault()}
7475
// Adds custom HTML attributes
7576
{...Object.fromEntries(
7677
Object.entries(props.domAttributes || {}).filter(

0 commit comments

Comments
 (0)