From d92cbe2c587ccbbd9124eac043afdfb2dcf3288a Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Fri, 11 Oct 2024 09:13:50 +0800 Subject: [PATCH] fix: no copy and delete for shadow root --- src/Elements/Elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elements/Elements.js b/src/Elements/Elements.js index 7d905576..2c3ea7f4 100644 --- a/src/Elements/Elements.js +++ b/src/Elements/Elements.js @@ -99,7 +99,7 @@ export default class Elements extends Tool { const node = this._curNode - if (!node) { + if (!node || isShadowRoot(node)) { return }