close #263 Since we improved the block class strategy,
we need to check parent node before pushAdd.
This commit is contained in:
@@ -78,6 +78,9 @@ export default class MutationBuffer {
|
|||||||
*/
|
*/
|
||||||
const addQueue: Node[] = [];
|
const addQueue: Node[] = [];
|
||||||
const pushAdd = (n: Node) => {
|
const pushAdd = (n: Node) => {
|
||||||
|
if (!n.parentNode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const parentId = mirror.getId((n.parentNode as Node) as INode);
|
const parentId = mirror.getId((n.parentNode as Node) as INode);
|
||||||
const nextId =
|
const nextId =
|
||||||
n.nextSibling && mirror.getId((n.nextSibling as unknown) as INode);
|
n.nextSibling && mirror.getId((n.nextSibling as unknown) as INode);
|
||||||
|
|||||||
Reference in New Issue
Block a user