textarea 获取焦点上推后 输入框高度发生变化时 与键盘的距离会发生变化 导致出现空隙和遮挡

发布于 6 年前作者 sulei8332 次浏览最后编辑 6 年前来自 issues
<textarea
      hold-keyboard="{{true}}"
        value="{{textValue}}"
        fixed="{{true}}"
        placeholder="发表你的评论吧"
        bindfocus="bindTextAreaFocus"
        bindblur="bindTextAreaBlur"
        bindinput="bindTextAreaInput"
        auto-height="{{true}}"
        cursor-spacing="15"
      />
      <text bindtap="sendHandle">发送text>
1 回复
hfang
hfang1 楼4 年前

你好,text-area设置了 cursor-spacing=“15”,键盘与光标会存在距离。具体参考文档:https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html