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

About the scrollToField in the form form #6352

Open
1 task
rocky-git opened this issue Mar 14, 2023 · 0 comments
Open
1 task

About the scrollToField in the form form #6352

rocky-git opened this issue Mar 14, 2023 · 0 comments

Comments

@rocky-git
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.4

Environment

Chrome 110.0.5481.100, vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

关于form表单里的scrollToField是使用getElementById唯一识别定位,当存在两个表单的时候存在相同字段的时候id就会重复,这时候就会冲突导致跳转不到期望的位置

What is expected?

当存在2个表单并字段有存在的情况下能scrollToField到对应位置,存在两个相同字段的解决方案

What is actually happening?

当存在2个表单,我实际操作的是第二个表单,跳转的是第一个表单的位置

@github-actions github-actions bot changed the title 关于form表单里的scrollToField About the scrollToField in the form form Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants