diff --git a/lib/components/content.js b/lib/components/content.js index 52f2524e0..889587b0e 100644 --- a/lib/components/content.js +++ b/lib/components/content.js @@ -320,6 +320,9 @@ class Content extends React.Component { isFocused: true }) + // If the target is inside a void node, abort. + if (state.document.hasVoidParent(point.key)) return + // If the drag is internal, handle it now. And it the target is after the // selection, it needs to account for the selection's content being deleted. if (this.tmp.isInternalDrag) {