<input value="{{value}}" focus="{{isfocus}}" class="input" bindblur="input"></input>
data: {
isfocus:true,
},
input(e){
let that = this;
let value = e.detail.value;
setTimeout(function(){
//模拟操作
console.log('操作进行')
that.setData({
isfocus: false,
value:''
})
//有弹窗就不能输入,没有就可以
wx.showToast({
title: '操作完成',
})
// 操作完成后重新聚焦接着输入
setTimeout(function(){
console.log('操作完成')
that.setData({
isfocus: true,
},2000)
})
},2000)
},
有了弹窗input重新聚焦也无法输入,删去弹窗就可以了,原来的电脑版可以,新更新的2.9.0电脑版微信不行
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)