详细问题描述
动态设置textarea的focus属性,聚焦拉起软键盘突然又会失焦,出现键盘一闪的情况。
IDE运行环境说明
HBuilderX
[IDE版本号]
2.6.9
uni-app运行环境说明
app 真机
[运行端版本号]
HBuilderX创建
App运行环境说明
[Android版本号] 7.1.1
复现代码
<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="article">
<text class="title">{{title}}</text>
</view>
<view>
<textarea class="text-area" :focus="textareaIsFocus" />
<button type="default" @tap="open">弹出</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Dcloud 项目',
textareaIsFocus: false
}
},
onLoad() {
},
methods: {
open() {
this.textareaIsFocus=true
}
}
}
</script>
秋天的秋
官方这个问题还没有解决吗,都一个多月了
2020-05-18 18:30