tdesign-vue icon indicating copy to clipboard operation
tdesign-vue copied to clipboard

[Form] 表单校验不通过时,不滚动到指定位置且报错

Open Loinver opened this issue 1 year ago • 1 comments

tdesign-vue 版本

1.10.3

重现链接

https://stackblitz.com/edit/mymvow?file=package.json,src%2Fdemo.vue

重现步骤

scrollToFirstError设置为true时,且表单内包含数组类数据时,提交校验时报错。

期望结果

能正常滚动到错误位置

实际结果

image

框架版本

2.6.14

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Loinver avatar Oct 18 '24 00:10 Loinver

👋 @Loinver,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] avatar Oct 18 '24 00:10 github-actions[bot]

image 提供的是示例,跳转正常没报错

liweijie0812 avatar Oct 22 '24 09:10 liweijie0812

审查元素看到示例的节点class是_连接 image 我本地是用.连接 image

Loinver avatar Oct 23 '24 01:10 Loinver

噢噢,知道了,我使用的是 image zhe zh这种去定义form-item的name

Loinver avatar Oct 23 '24 01:10 Loinver