Skip to content

Commit 4a1679e

Browse files
committed
fix: set isShowingChildren imidiatly when element are in view to avoid timing issues
1 parent ab2bb34 commit 4a1679e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/webui/src/client/lib/VirtualElement.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ export function VirtualElement({
133133
}
134134

135135
setInView(visible)
136+
if (visible) {
137+
setIsShowingChildren(true)
138+
}
136139

137140
// Don't do updates while transitioning:
138141
if (isTransitioning.current) {

0 commit comments

Comments
 (0)