From 827fdae3f5ef55a2c5cdee125fb9b8b904eba0c1 Mon Sep 17 00:00:00 2001 From: lilu Date: Wed, 7 May 2025 11:19:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20MutationObserver=E5=9C=A8=E7=81=AB?= =?UTF-8?q?=E7=8B=90=E6=B5=8F=E8=A7=88=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sandbox/scoped_css.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox/scoped_css.ts b/src/sandbox/scoped_css.ts index 7e9bdeb1..c9c61e0f 100644 --- a/src/sandbox/scoped_css.ts +++ b/src/sandbox/scoped_css.ts @@ -524,7 +524,7 @@ export default function scopedCSS ( scopedCSS(styleElement, app, linkPath) } }) - observer.observe(styleElement, { childList: true, characterData: true }) + observer.observe(styleElement, { childList: true, characterData: true, subtree: true }) } else { const observer = new MutationObserver(function () { observer.disconnect()