From 708ac94cebce2ed9304ae7e87eb4c3251758f903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 9 Apr 2021 09:51:07 +0200 Subject: [PATCH] fix: fix a bug when detecting changes within node views --- packages/core/src/NodeView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/NodeView.ts b/packages/core/src/NodeView.ts index f346a50819..875a3e54fc 100644 --- a/packages/core/src/NodeView.ts +++ b/packages/core/src/NodeView.ts @@ -175,7 +175,7 @@ export class NodeView impleme } const contentDOMHasChanged = !this.contentDOM.contains(mutation.target) - || this.contentDOM === mutation.target + || (this.contentDOM === mutation.target && mutation.type === 'attributes') return contentDOMHasChanged }