Skip to content

About the scrollToField in the form form #6352

Open
@rocky-git

Description

@rocky-git
  • 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个表单,我实际操作的是第二个表单,跳转的是第一个表单的位置

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions