Skip to content

Commit

Permalink
fix: check for atom nodes in ignoreMutation handler, fix #1448
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Jun 14, 2021
1 parent f7890c0 commit 2deb07f
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 @@ -183,7 +183,7 @@ export class NodeView<Component, Editor extends CoreEditor = CoreEditor> impleme

// a leaf/atom node is like a black box for ProseMirror
// and should be fully handled by the node view
if (this.node.isLeaf) {
if (this.node.isLeaf || this.node.isAtom) {
return true
}

Expand Down

0 comments on commit 2deb07f

Please sign in to comment.