We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG:在任意位置使用手势(下滑)向上滚动都会触发onRefresh
预期:滚动到顶部后再下滑才触发onRefresh
import { PullRefresh, Toast } from "@arco-design/mobile-react"; import React from "react"; const onRefresh = () => new Promise((resolve) => setTimeout(resolve, 100)).then(() => { Toast.info( `Refresh successfully @${new Intl.DateTimeFormat("zh-CN", { timeStyle: "medium", }).format(new Date())}` ); }); const data = Array.from({ length: 20 }, (_, index) => `index: ${index}`); export default function PullRefreshDemo() { return ( <PullRefresh onRefresh={onRefresh}> {data.map((item) => ( <div key={item} style={{ paddingBlockEnd: 50 }}> {item} </div> ))} </PullRefresh> ); }
但时当给.arco-pull-refresh-content或.arco-pull-refresh添加高度样式后行为正常
.arco-pull-refresh-content
.arco-pull-refresh
.arco-pull-refresh{ height: 100vh }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Basic Info
BUG:在任意位置使用手势(下滑)向上滚动都会触发onRefresh
预期:滚动到顶部后再下滑才触发onRefresh
但时当给
.arco-pull-refresh-content
或.arco-pull-refresh
添加高度样式后行为正常The text was updated successfully, but these errors were encountered: