mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 07:40:13 +08:00
fix cursor bug
This commit is contained in:
parent
d479c184aa
commit
ddc20c9e47
@ -206,7 +206,11 @@ class VueNodeView implements NodeView {
|
||||
|
||||
ignoreMutation(mutation: MutationRecord | { type: 'selection'; target: Element }) {
|
||||
if (mutation.type === 'selection') {
|
||||
return true
|
||||
if (this.node.isLeaf) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
if (!this.contentDOM) {
|
||||
|
Loading…
Reference in New Issue
Block a user