<view>
<view class="container">
<button type="primary" plain="true" @click="test('top')">测试</button>
<view v-show="showTxtArea">
<textarea :focus="txtFocus" style="border: 1px solid red;">
</textarea>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
txtFocus: false,
showTxtArea: false,
};
},
methods: {
test(){
this.showTxtArea = true;
this.txtFocus = true;
}
}
};
</script>
点击按钮时,软键盘弹出又跑了,是bug么?
1 个回复
x***@qq.com - 疑问?的小纳?
手机问题吧,换个手机调试看看