收藏
回答

textarea组件聚焦内容无法上下滑动

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug textarea 微信安卓客户端 7.0.22 2.12.0

https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html

textarea设置了初始高度,都输入内容超过初始高度时,键盘聚焦输入内容无法上下滑动

<view class="auth-reason-text-reason">
  <textarea class="auth-reason-text-box"
    placeholder="请填写您的建议"
    placeholder-class="input_placeholder"
    bindinput="handleInputReason"
    value="{{otherReason}}"
    cursor-spacing="150"
    show-confirm-bar="{{false}}"
    disable-default-padding
    maxlength="{{-1}}">
  </textarea>
</view>
&-reason{
  position: relative;
  height: 204rpx;
  width: 622rpx;
  padding: 16rpx;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8rpx;
  border: 2rpx solid #D2D2D2;
  box-sizing: border-box;
}
&-box{
  position: relative;
  width: 588rpx;
  height: 172rpx;
  box-sizing: border-box;
  font-size: 30rpx;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #353535;
  line-height: 42rpx;
}


回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签