From e55c663604de3d7fc071eb1c2ce1662e4e22ab02 Mon Sep 17 00:00:00 2001 From: wfjsw Date: Fri, 19 Jan 2024 23:39:52 -0600 Subject: [PATCH] fix ngx --- packages/web/src/observers/general/GeneralObserver.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web/src/observers/general/GeneralObserver.ts b/packages/web/src/observers/general/GeneralObserver.ts index 828619b13f..3ad0310233 100644 --- a/packages/web/src/observers/general/GeneralObserver.ts +++ b/packages/web/src/observers/general/GeneralObserver.ts @@ -177,6 +177,11 @@ export function GeneralObserver() { .handleChildList(Array.from(mutation.addedNodes)) .forEach((t) => result.add(t)); } + if (mutation.removedNodes.length > 0) { + nodeHandler + .handleChildList(Array.from(mutation.removedNodes)) + .forEach((t) => result.delete(t)); + } break; case 'attributes':