From d3a5269f25fceb70def92b023807d43c5cec2734 Mon Sep 17 00:00:00 2001 From: 3lang3 <675483520@qq.com> Date: Thu, 20 Apr 2023 13:28:41 +0800 Subject: [PATCH] Fix list error (#636) * fix: list error state correct * chore: update ver * chore: update ci * chore: update ci --- .github/workflows/preview-build.yml | 2 +- packages/react-vant/package.json | 2 +- packages/react-vant/src/components/list/LoadMore.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 0126540f2..162187708 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -18,7 +18,7 @@ jobs: - name: Run Npm Scripts run: | node -v - npm install pnpm -g + npm install pnpm@^7 -g pnpm -v pnpm i yarn docs:build diff --git a/packages/react-vant/package.json b/packages/react-vant/package.json index 3b1c7797f..b10160e6e 100644 --- a/packages/react-vant/package.json +++ b/packages/react-vant/package.json @@ -1,6 +1,6 @@ { "name": "react-vant", - "version": "3.2.4", + "version": "3.2.5", "description": "React Mobile UI Components base on Vant UI", "keywords": [ "ui", diff --git a/packages/react-vant/src/components/list/LoadMore.tsx b/packages/react-vant/src/components/list/LoadMore.tsx index 5012618bd..fe355b5aa 100644 --- a/packages/react-vant/src/components/list/LoadMore.tsx +++ b/packages/react-vant/src/components/list/LoadMore.tsx @@ -40,7 +40,7 @@ const LoadMore = React.forwardRef( const { run: check } = useThrottleFn( async () => { if (nextFlagRef.current !== flag) return - if (props.finished) return + if (props.finished || failed) return const element = elementRef.current if (!element) return if (!element.offsetParent) return