2***@qq.com
2***@qq.com
  • 发布:2020-04-20 14:21
  • 更新:2020-04-20 15:22
  • 阅读:588

v3编译器下,textarea的focus问题

分类:uni-app
v3
    <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么?

2020-04-20 14:21 负责人:无 分享
已邀请:
x***@qq.com

x***@qq.com - 疑问?的小纳?

手机问题吧,换个手机调试看看

该问题目前已经被锁定, 无法添加新回复