Skip to content

Commit f8a912e

Browse files
committed
Apply draggable/contenteditable to inner node DOM during mousedown
FIX: Consistently set `draggable` on a node's inner DOM representation, not a decoration wrapper element. See https://discuss.prosemirror.net/t/where-should-draggable-be-set/8806
1 parent e555c24 commit f8a912e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class MouseDown {
329329

330330
const target = flushed ? null : event.target as HTMLElement
331331
const targetDesc = target ? view.docView.nearestDesc(target, true) : null
332-
this.target = targetDesc && targetDesc.dom.nodeType == 1 ? targetDesc.dom as HTMLElement : null
332+
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM as HTMLElement : null
333333

334334
let {selection} = view.state
335335
if (event.button == 0 &&

0 commit comments

Comments
 (0)