Skip to content

Commit 85442c4

Browse files
committed
refactor: exclude hidden elements
1 parent b1282e6 commit 85442c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderer/host-element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export class HostElement {
2929
}
3030

3131
get children(): HostNode[] {
32-
const result = this.instance.children.map((child) => HostElement.fromInstance(child));
32+
const result = this.instance.children
33+
.filter((child) => !child.isHidden)
34+
.map((child) => HostElement.fromInstance(child));
3335
return result;
3436
}
3537

0 commit comments

Comments
 (0)