textarea 在 iPhone 7P 下有时不出现"完成" 按钮。
发布于 5 年前 作者 yangchen 6216 次浏览 来自 问答

在 iPhone 上有时候总是出现这种问题,也不知如何解决,代码上并没有写的不规范的地方,还请不吝赐教。

  1. 此为具体版本信息
  1. 此为预期效果
  1. 此为有时出现的效果(出现频率不低)
  1. 此为在 vConsole 上查看的调试信息
  1. 此为相关代码
<form action>
    <view>
      <view>
        <text>收件人:</text>
        <input type="text" placeholder="姓名" placeholder-class="placeholder" value="{{consignee.name}}" bindinput="bindNameInput"/>
      </view>
      <view>
        <text>联系电话:</text>
        <input type="number" placeholder="手机或固话" placeholder-class="placeholder" value="{{consignee.mobile}}" bindinput="bindMobileInput"/>
      </view>
      <view>
          <text>邮编:</text>
          <input type="number" placeholder="邮编地址" placeholder-class="placeholder" value="{{consignee.zip_code}}" bindinput="bindZipCodeInput"/>
      </view>
      <view>
        <text>详细地址:</text>
        <view>
          <textarea placeholder-class="placeholder" placeholder="街道门牌信息" value="{{consignee.address}}" bindinput="bindAddressInput"/>
        </view>
      </view>
    </view>
  </form>
3 回复

麻烦提供出现问题的具体机型、微信版本号以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

截图2来看,焦点在textarea,所以有完成

截图3来看,焦点不在textarea,所以没有

给textarea 强加个这个属性呢?

回到顶部