Skip to content
New issue

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] ProFormUploadDragger does not scroll when using scrollToFirstError #8992

Open
nomikura opened this issue Feb 5, 2025 · 0 comments

Comments

@nomikura
Copy link

nomikura commented Feb 5, 2025

🐛 bug 描述

When an error occurs in ProFormUploadDragger, the form does not scroll to the field, even though scrollToFirstError is enabled.
Other fields are correctly scrolled to, but ProFormUploadDragger is ignored.

📷 复现步骤

CodeSandbox Link

  1. Scroll to the bottom of the form and click the Submit button.
  2. Since file upload is required, an error will occur.
  3. The form should scroll to ProFormUploadDragger, but it does not.

🏞 期望结果

When an error occurs in ProFormUploadDragger, the form should automatically scroll to the field, just like other form components.

💻 复现代码

© 版本信息

  • ProComponents 版本: 2.8.4
  • umi 版本
  • 浏览器环境: Google Chrome 132.0.6834.160(Official Build) (arm64)
  • 开发环境: mac OS 15.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant