-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Input 组件 onConfirm 事件无法清空 value #1502
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
小程序原生可以不处理 onInput 也可以在 onComfirm 里清空 text 么 |
Input 组件怎么才能触发清空value? |
官方好像还没有解决这个问题吧? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
我在使用 Input 组件时,期望在 onConfirm 里清空 text。但是并没有。然后我查阅了相关问题,发现处理了
onInput 事件之后,就可以清空。然后我查阅文档并没有发现这样的说明。
复现步骤
[复现问题的步骤]
期望行为
期望不处理 onInput 也可以在 onComfirm 里清空 text
报错信息
![image](https://user-images.githubusercontent.com/20121334/49943012-ca6dd780-ff21-11e8-8c77-ac71e307962f.png)
没打开注释的效果
打开了注释的效果
![image](https://user-images.githubusercontent.com/20121334/49943183-34867c80-ff22-11e8-9c11-090ff6746714.png)
打开了注释的效果
系统信息
补充信息
[可选]
[根据你的调查研究,出现这个问题的原因可能在哪里?]
The text was updated successfully, but these errors were encountered: