小程序表单内来回切换输入框,输入框会变得无法输入
发布于 6 年前 作者 czhang 10837 次浏览 来自 问答

问题只出现在真机调试

原始form:

<form bindsubmit="formSubmit">
<view class="weui-cells weui-cells_after-title">
  <view class="weui-cell weui-cell_input">
      <view class="weui-cell__hd">
          <view class="weui-label">站点名</view>
      </view>
      <view class="weui-cell__bd">
          <input class="weui-input"  name="siteName" placeholder="请输入站点名"  />
      </view>
  </view>
  <view class="weui-cell weui-cell_input">
      <view class="weui-cell__hd">
          <view class="weui-label">站点描述</view>
      </view>
      <view class="weui-cell__bd">
          <input class="weui-input"  name="siteDescription" placeholder="15个字以内,否则不美观"  />
      </view>
  </view>
</view>
  <view class="weui-btn-area">
    <button class="weui-btn" type="primary"  formType="submit">确定</button>
  </view>
</form>

连续切换输入框后,某个input变成

<input class="weui-input"  name="siteDescription" placeholder="15个字以内,否则不美观" selection-start=“-1”   
selection-end=“-1”  cursor=“-1” />

然后这个输入框就不能再输入了。就是多了几个原来没添加的属性:

selection-start=“-1”   
selection-end=“-1”  cursor=“-1”
1 回复

你好,该问题已解决的,麻烦重试一下

回到顶部