【BUG】IOS获取不到粘贴到输入框的内容
【BUG】:从手机通讯录复制一个电话号码,在微信小程序输入框中粘贴,form表单的bindsubmit事件获取不到粘贴进去的内容 ,android上是正常的,IOS真机获取不到,开发工具的模拟器也是正常的
微信版本:6.6.5
IOS系统版本:11.2.1
3 回复
iphone 8plus和iphone X 都不行 微信版本是6.6.5
< form bindsubmit = "bindFormSubmit" > < view class = "weui-cells weui-cells_after-title" > < view class = "weui-cell weui-cell_input" > < view class = "weui-cell__hd" > < view class = "weui-label" >手机号</ view > </ view > < view class = "weui-cell__bd" > < input name = "mobile" class = "weui-input" placeholder = "请输入手机号码" /> </ view > </ view > </ view > < view class = "weui-btn-area" > < button class = "weui-btn zs-btn" loading = "{{btn.loading}}" type = "primary" form-type = "submit" >{{btn.text}}</ button > </ view > </ form > |
bindFormSubmit : function (e){ var submit = e.detail.value; console.log(submit.mobile) } |
iphone真机上拿不到这个值,所以过不了手机号的验证。
开发者工具的模拟器和安卓手机上是正常的