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
当form表单的rule设置了多个trigger,比如trigger: ['input', 'blur'],此时input会触发错误信息,blur也会触发错误信息,错误出现会有动画效果,导致页面错误信息展示再闪一次出现。
trigger
trigger: ['input', 'blur']
input
blur
1、打开官网示例:https://www.naiveui.com/zh-CN/os-theme/components/form 2、在年龄输入框中输入任意值并点击其他地方让输入框失去焦点 3、再次点击输入框,将内容删除,此时会出现必填的校验报错,再点击其他地方让输入框失去焦点,此时会再次出现必填项的错误校验信息
https://www.naiveui.com/zh-CN/os-theme/components/form
macos 13.5.2 (22G91) chrome 120.0.6099.199 "naive-ui": "^2.37.3" "vue": "^3.4.7"
npm
The text was updated successfully, but these errors were encountered:
这不是 bug 吧,校验两次的原因是因为 trigger 设成了 input, blur
Sorry, something went wrong.
或许如果能认出来 feedback 没有变的情况可以保持原有内容不变?
This is actually a bug introduced in 2.37.0
a604c4b
Successfully merging a pull request may close this issue.
Describe the bug
当form表单的rule设置了多个
trigger
,比如trigger: ['input', 'blur']
,此时input
会触发错误信息,blur
也会触发错误信息,错误出现会有动画效果,导致页面错误信息展示再闪一次出现。Steps to reproduce
1、打开官网示例:https://www.naiveui.com/zh-CN/os-theme/components/form
2、在年龄输入框中输入任意值并点击其他地方让输入框失去焦点
3、再次点击输入框,将内容删除,此时会出现必填的校验报错,再点击其他地方让输入框失去焦点,此时会再次出现必填项的错误校验信息
Link to minimal reproduction
https://www.naiveui.com/zh-CN/os-theme/components/form
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: