l***@163.com
l***@163.com
  • 发布:2022-05-28 09:13
  • 更新:2023-04-21 16:45
  • 阅读:301

【报Bug】schema2code生成多个input框页面,如果一个input已经获取焦点再点击下一个input,键盘跳动两次后消失

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 21H1

HBuilderX类型: 正式

HBuilderX版本号: 3.4.12

第三方开发者工具版本号: 1.05.2204250

基础库版本号: 2.24.4

项目创建方式: HBuilderX

示例代码:
  <view class="uni-container">  
    <uni-forms ref="form" :modelValue="formData" validate-trigger="submit" err-show-type="toast">  
      <uni-forms-item name="unit_name" label="单位名称" required>  
        <uni-easyinput @focus="inputFocus" @blur="inputBlur" v-model="formData.unit_name" placeholder="单位名称"></uni-easyinput>  
      </uni-forms-item>  
      <uni-forms-item name="tax_number" label="税号" required>  
        <uni-easyinput @focus="inputFocus" @blur="inputBlur" v-model="formData.tax_number" placeholder="税号"></uni-easyinput>  
      </uni-forms-item>  
      <uni-forms-item name="unit_address" label="单位地址">  
        <uni-easyinput @focus="inputFocus" @blur="inputBlur" v-model="formData.unit_address" placeholder="单位地址"></uni-easyinput>  
      </uni-forms-item>  
      <uni-forms-item name="tel" label="电话号码">  
        <uni-easyinput v-model="formData.tel" placeholder="电话号码"></uni-easyinput>  
      </uni-forms-item>  
      <uni-forms-item name="open_account" label="开户银行">  
        <uni-easyinput v-model="formData.open_account" placeholder="开户银行"></uni-easyinput>  
      </uni-forms-item>  
      <uni-forms-item name="bank_number" label="银行账号">  
        <uni-easyinput v-model="formData.bank_number" placeholder="银行账号"></uni-easyinput>  
      </uni-forms-item>  
      <view class="uni-button-group">  
        <button type="primary" class="uni-button" @click="submit">提交</button>  
      </view>  
    </uni-forms>  
  </view>

操作步骤:

使用schema2code生成多个input框的页面

预期结果:

点击input键盘无异常

实际结果:

点击input后键盘跳动两次后消失

bug描述:

scheam2code生成的代码,小程序真机调试.如果一个input已经获取焦点了,再点击下一个input框会连续触发两次blur,并不会触发focus.导致键盘弹两次后消失

2022-05-28 09:13 负责人:无 分享
已邀请:
4***@qq.com

4***@qq.com

你好解决了吗?

要回复问题请先登录注册