安卓 input 组件双向绑定异常
环境:
系统:安卓 6.0.1,MIUI 8.5
输入法:搜狗输入法小米版
微信:6.5.16
重现用例:
<view class="view"> <input type="text" placeholder="请输入文字" value="{{ value }}" bindinput="input" /> |
Page({ data: { value: '', }, input (event) { this.setData({ value: event.detail.value, }) },}) |
用输入法打几个字母,然后快速地连续按退格删除,会出现输入框内值乱串。如果在退格删除后马上再输入内容也会异常,比如退格后输入 1234 可能只会出现 14。
其他线索:
-
输入框类型如果用 number、idcard、digit 都不会重现,只有 text 有问题,可能是和输入法有关。
-
测试了 iOS 系统使用英文键盘也不会重现。
