diff --git a/src/packages/range/range.taro.tsx b/src/packages/range/range.taro.tsx index ca043c3a98..b8a2f94775 100644 --- a/src/packages/range/range.taro.tsx +++ b/src/packages/range/range.taro.tsx @@ -293,6 +293,7 @@ export const Range: FunctionComponent< setDragStatus('draging') const rect = await getRectByTaro(root.current) + if (!rect) return let delta = touch.deltaX.current let total = rect.width let diff = (delta / total) * scope()