-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
form error style for input addonAfter slot #6374
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
Comments
先写 css 覆盖吧 另外 useForm 本来就是 ui 无关的,UI 的销毁和 useForm 的状态没关系 |
你可以自己动态过滤一下,rules或者formState @CreateClear |
antdesign 也有这个问题,我看了一下,表单的校验,没有因 input disabled 而过滤校验 @tangjinzhou |
@tangjinzhou 好的 感谢 |
@CCherry07 好的 我试试 感谢 |
chenxiaofie
added a commit
to chenxiaofie/ant-design-vue
that referenced
this issue
Mar 28, 2023
* fix(FormITem): add one propType, add disableElement,edit style
chenxiaofie
added a commit
to chenxiaofie/ant-design-vue
that referenced
this issue
Mar 28, 2023
13 tasks
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
undefined
Environment
win11, [email protected], [email protected]
Reproduction link
Steps to reproduce
当表单项禁用时 包含的 #addonAfter 元素依然会出现红框
What is expected?
当表单项被禁用时完全不进行验证
What is actually happening?
当表单项禁用时 包含的 #addonAfter 元素依然会出现红框
除此之外,在useForm模式下,即使表单项被销毁(v-if="false"),依然会触发验证,demo中已复现
The text was updated successfully, but these errors were encountered: