From 175c98d1aeefaa634148e4d07f24ab1d5a2ba590 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +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;