input bindinput bug?
以前的代码,没有bug.
handChangeCompanyField: function (event){ let value=event.detail.value, key=event.target.dataset.str; var obj=Object.assign({}, this .data.companyInfo); obj[key]=value; this .setData({companyInfo:obj}); return value; }, |
< view class = "cell" > < label >收货人员:</ label > < input value = "{{companyForm.consignee}}" data-str = "stoSaleUsername" bindinput = "handChangeCompanyField" placeholder = "请输入收货人员" /> </ view > |
最近微信更新小程序的比较快.有客户反映无法输入.
具体现象是输入或者删除一个字母系统键盘就会消失.体验非常难受.
< view class = "cell" > < label >收货人员:</ label > < input value = "{{companyForm.consignee}}" data-str = "stoSaleUsername" bindblur = "handChangeCompanyField" bindconfirm = "handChangeCompanyField" placeholder = "请输入收货人员" /> </ view > |
最后无奈只能把事件换成confirm和blur就可以了.
是否有更好的办法.