fix #460 ignore added node that are not in document anymore
This commit is contained in:
@@ -210,7 +210,7 @@ export default class MutationBuffer {
|
|||||||
return nextId;
|
return nextId;
|
||||||
};
|
};
|
||||||
const pushAdd = (n: Node) => {
|
const pushAdd = (n: Node) => {
|
||||||
if (!n.parentNode) {
|
if (!n.parentNode || !document.contains(n)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const parentId = mirror.getId((n.parentNode as Node) as INode);
|
const parentId = mirror.getId((n.parentNode as Node) as INode);
|
||||||
|
|||||||
Reference in New Issue
Block a user