ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

About the scrollToField in the form form

Open rocky-git opened this issue 2 years ago • 0 comments

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

rocky-git avatar Mar 14 '23 06:03 rocky-git