From e7fdfcb3aca45809b4e103fc920db048e56e4648 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Fri, 8 Jan 2021 14:03:44 +0800 Subject: [PATCH] fix #452 check isBlocked on add mutation's target --- src/record/mutation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/record/mutation.ts b/src/record/mutation.ts index f0ef9cc2..6f8be15d 100644 --- a/src/record/mutation.ts +++ b/src/record/mutation.ts @@ -436,6 +436,9 @@ export default class MutationBuffer { if (isBlocked(n, this.blockClass)) { return; } + if (target && isBlocked(target, this.blockClass)) { + return; + } if (isINode(n)) { if (isIgnored(n)) { return;