We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.1.1
vue3
在form加上scrollToFirstError属性 点击按钮后第一个错误字段被遮挡。 页面头部有position: sticky;或fixed 属性都会出问题
第一个错误字段不被遮挡
第一个错误字段被遮挡
scrollToFirstError加上配置
The text was updated successfully, but these errors were encountered:
可以使用 scrollToField方法来自己实现,通过第二个参数传入 options
scrollToField
options
参考:https://codesandbox.io/s/keen-haze-vbm9f?file=/src/App.vue
Sorry, something went wrong.
后面支持一下能够通过 scrollToFirstError 传入 options
scrollToFirstError
如果我的表单是属于那种嵌套的应该怎么处理呢,我看了你的demo ,发现并不行,w我的erro信息大致是这样的
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
John60676
No branches or pull requests
Version
2.1.1
Environment
vue3
Reproduction link
Steps to reproduce
在form加上scrollToFirstError属性 点击按钮后第一个错误字段被遮挡。
页面头部有position: sticky;或fixed 属性都会出问题
What is expected?
第一个错误字段不被遮挡
What is actually happening?
第一个错误字段被遮挡
scrollToFirstError加上配置
The text was updated successfully, but these errors were encountered: