From 211d4a4a5e926dc527206882a482c09dcdf14050 Mon Sep 17 00:00:00 2001 From: Matthew Mullin Date: Mon, 30 Jan 2023 13:16:05 -0800 Subject: [PATCH] fix: Recent dragged node should respect draghandle --- packages/core/src/NodeView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/NodeView.ts b/packages/core/src/NodeView.ts index 54ccb77fd35..f96863231f4 100644 --- a/packages/core/src/NodeView.ts +++ b/packages/core/src/NodeView.ts @@ -111,7 +111,7 @@ export class NodeView< } const target = (event.target as HTMLElement) - const isInElement = this.dom.contains(target) && !this.contentDOM?.contains(target) + const isInElement = this.dom.contains(target) || this.contentDOM?.contains(target) // any event from child nodes should be handled by ProseMirror if (!isInElement) {