diff --git a/packages/virtual/src/index.tsx b/packages/virtual/src/index.tsx index 27735db89..0be48405b 100644 --- a/packages/virtual/src/index.tsx +++ b/packages/virtual/src/index.tsx @@ -58,7 +58,7 @@ export function createVirtualList({ }), e => { // @ts-expect-error - setOffset(e.target?.scrollTop); + if (e.target?.scrollTop) setOffset(e.target.scrollTop); }, ]; }