6***@qq.com
6***@qq.com
  • 发布:2019-02-13 22:12
  • 更新:2019-02-13 22:12
  • 阅读:4508

textarea文本域如何自动获取焦点

分类:uni-app
<lvv-popup ref="lvvpopref">  
            <view  style="width: 100%;height: 250upx;background: #EAEAEA;position:fixed; bottom:0; " v-if="showState">  
                <view class="text_t">请输入用户名</view>  
                <view class="grace-form">  
                    <form @submit="formSubmit">  
                        <view class="grace-items">  
                            <textarea class="inp_x" placeholder="请输入..." maxlength="100" @input = "descInput" v-model="desc" focus :auto-focus="true"/>  
                        </view>  
                    </form>  
                </view>   

            </view>  
            </lvv-popup>
methods:{  
            tap_ce:function(){  
                this.$refs.lvvpopref.show();   
                this.showState = true;  
            }  
                 }
  在5+app里可以正常弹出键盘获得焦点,但是只弹出几秒钟,几秒后自动失去焦点小键盘会回弹回去 请问应该如何解决。  万分感谢, 
2019-02-13 22:12 负责人:无 分享
已邀请:

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