Skip to content

Commit

Permalink
fix: Recent dragged node should respect draghandle
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmullin01 committed Jan 30, 2023
1 parent 9bae1b6 commit 211d4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/NodeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 211d4a4

Please sign in to comment.