-
Notifications
You must be signed in to change notification settings - Fork 754
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
Taro ui 3.1.0-beta.2 AtInput 动态修改 error 会失去焦点 #1463
Labels
bug
Something isn't working
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
我暂时解决了这个问题 源代码
现代码
.at-input__icon {
&&--error {
display: inline-flex;
}
&&--default {
display: none;
}
}
将原来直接修改元素改为通过样式隐藏 |
我不太清楚有没有更好的方法,如果这个方案可行,我可以去提个 pr |
安装最新版
|
"taro-ui": "^3.3.0" 依旧存在该问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
表单提交时校验 error 状态,用户重新输入时取消 error 状态,输入一个字符后便会失去焦点
复现步骤
期望行为
取消 error 后正常输入文字
报错信息
onChange 时取消 error 状态,input 就失去焦点了,实际应该要继续输入
系统信息
info Direct dependencies
└─ taro-ui@3.1.0-beta.2
info All dependencies
Taro CLI 3.4.4 environment info:
System:tive-modal@13.0.1
OS: Windows 10a.2
补充信息
The text was updated successfully, but these errors were encountered: