Skip to content

Commit

Permalink
fix: no copy and delete for shadow root
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 11, 2024
1 parent 1d4764d commit d92cbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elements/Elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class Elements extends Tool {

const node = this._curNode

if (!node) {
if (!node || isShadowRoot(node)) {
return
}

Expand Down

0 comments on commit d92cbe2

Please sign in to comment.