{
"type": "focus",
"timeStamp": 1613894702251,
"target": {
"id": "",
"dataset": {},
"offsetLeft": 0,
"offsetTop": 0
},
"currentTarget": {
"id": "",
"dataset": {},
"offsetLeft": 0,
"offsetTop": 0
},
"detail": {
"height": 0,
"value": ""
},
"stopPropagation": "function() { [native code] }"
}
- 发布:2021-02-21 16:07
- 更新:2021-02-23 10:54
- 阅读:737
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.1.3
手机系统: Android
手机系统版本号: Android 11
手机厂商: 华为
手机机型: 所有安卓手机
页面类型: nvue
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
{
"type": "focus",
"timeStamp": 1613894702251,
"target": {
"id": "",
"dataset": {},
"offsetLeft": 0,
"offsetTop": 0
},
"currentTarget": {
"id": "",
"dataset": {},
"offsetLeft": 0,
"offsetTop": 0
},
"detail": {
"height": 0,
"value": ""
},
"stopPropagation": "function() { [native code] }"
}
{
"type": "focus",
"timeStamp": 1613894702251,
"target": {
"id": "",
"dataset": {},
"offsetLeft": 0,
"offsetTop": 0
},
"currentTarget": {
"id": "",
"dataset": {},
"offsetLeft": 0,
"offsetTop": 0
},
"detail": {
"height": 0,
"value": ""
},
"stopPropagation": "function() { [native code] }"
}
预期结果:
height有高度
height有高度
实际结果:
height没高度
height没高度
bug描述:
input @focus事件获取不到系统键盘高度
kevin丶Wg (作者)
当时是3.1.2版本 3.1.3alpha确实修复了 谢谢
2021-02-26 16:06
kevin丶Wg (作者)
但是又出现一个bug nvue textarea标签在移动端唤起软键盘点击发送内容 结果却是换行发送不出去
2021-02-26 16:07