Skip to content

Commit

Permalink
fix: child nodes length
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBLT committed Jan 11, 2024
1 parent 2cb7fd7 commit 7fce276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@hec.js/ui/lib/src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function component(name, props, fn) {
}

if (this.shadowRoot) {
while (this.shadowRoot.childNodes) {
while (this.shadowRoot.childNodes.length) {
this.shadowRoot.lastChild.remove();
}
}
Expand Down

0 comments on commit 7fce276

Please sign in to comment.