fix #452 check isBlocked on add mutation's target

This commit is contained in:
Yanzhen Yu
2021-01-08 14:03:44 +08:00
parent ed19afe808
commit e7fdfcb3ac

View File

@@ -436,6 +436,9 @@ export default class MutationBuffer {
if (isBlocked(n, this.blockClass)) { if (isBlocked(n, this.blockClass)) {
return; return;
} }
if (target && isBlocked(target, this.blockClass)) {
return;
}
if (isINode(n)) { if (isINode(n)) {
if (isIgnored(n)) { if (isIgnored(n)) {
return; return;