安卓机输入字符串无法实时触发bindinput
发布于 5 年前 作者 yongqian 8613 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

输入了123456aaaa只有123456触发了bindinput事件

  • 预期表现

输入框已经输入字符了,应当触发对应的事件

  • 复现路径

https://developers.weixin.qq.com/s/CMdbZKmk733n

  • 提供一个最简复现 Demo

<input class=‘aaa’ name=“userName” value="{{inputValue}}" bindinput=“bindKeyInput” placeholder=“输入同步到view中”/>

bindKeyInput(event){

console.log(event.detail,“bindinput”)

this.setData({

inputValue: event.detail.value

});

},

3 回复

这边使用Android测试没有复现问题哦,麻烦提供出现问题的具体机型以及微信版本号、基础库版本

目前问题的定位是输入法认为字符串没有结束,所以无法触发

回到顶部