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

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

Closed
Loinver opened this issue Oct 18, 2024 · 4 comments
Closed

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

Loinver opened this issue Oct 18, 2024 · 4 comments

Comments

@Loinver
Copy link

Loinver commented Oct 18, 2024

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

Copy link
Contributor

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

@liweijie0812
Copy link
Collaborator

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

@Loinver
Copy link
Author

Loinver commented Oct 23, 2024

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

@Loinver
Copy link
Author

Loinver commented Oct 23, 2024

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

@Loinver Loinver closed this as completed Oct 23, 2024
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

2 participants