mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 07:40:13 +08:00
fix: Ignore iOS mutations when unfocused (#2170)
This commit is contained in:
parent
6e25e99c7a
commit
10fea3b44e
@ -202,7 +202,7 @@ export class NodeView<
|
||||
// this is because ProseMirror can’t preventDispatch on enter
|
||||
// this will lead to a re-render of the node view on enter
|
||||
// see: https://github.com/ueberdosis/tiptap/issues/1214
|
||||
if (this.dom.contains(mutation.target) && mutation.type === 'childList' && isiOS()) {
|
||||
if (this.dom.contains(mutation.target) && mutation.type === 'childList' && isiOS() && this.editor.isFocused) {
|
||||
const changedNodes = [
|
||||
...Array.from(mutation.addedNodes),
|
||||
...Array.from(mutation.removedNodes),
|
||||
|
Loading…
Reference in New Issue
Block a user