Skip to content

Commit

Permalink
fix(List): scrollParentRect判空
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilotager committed Nov 19, 2024
1 parent 5c89c82 commit b0faf64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/list/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function List(props: ListProps, ref: ForwardedRef<ListInstance>) {
return
}
const scrollParentRect = await getRect(scrollRef)
if (!scrollParentRect.height) {
if (!scrollParentRect?.height) {
return
}

Expand Down

0 comments on commit b0faf64

Please sign in to comment.