textarea placehoder 漂浮问题bug
发布于 5 年前 作者 xiuying20 4215 次浏览 来自 问答

如图 “正在酝酿中…” 这是 提示文字,感觉像是整个 组件 飘到上方了,

<textarea class=‘textarea’ style=’{{iosPhone?“padding-top:10rpx;padding-bottom:10rpx;”:""}}’

    value=’{{value}}’

    bindfocus=’_textFocus’

    bindinput=’_textInput’        

    bindlinechange=’_lineChange’

    auto-focus=’{{isFocus}}’  

    placeholder=’{{hint}}’

    auto-height=’{{autoHeight}}’

    adjust-position=’{{true}}’

    fixed=’{{true}}’

    show-confirm-bar=’{{false}}’  

    maxlength=’-1’

    cursor-spacing=“40rpx”>

</textarea>

代码基本就是这样子, 当页面滑动的时候 ,提示文字 会漂出输入框外,不知道是不是fixed的问题,现在看起来就 iPhone 会出现这个问题,也不是必现的。。。

2 回复

提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

现象:输入内容,滚动页面。真机调试出现内容浮动,模拟器上没有。

发现的问题点:同样的代码编译后,模拟器上生成内容 ,真机上没有

代码:

<textarea v-model="Project.ProRequire" :adjust-position="true" :fixed="true"  v-if="newFile == 0"/>

框架:mpvue

真机型号:华为meta10,ios系统也有这个问题(具体型号未知)

回到顶部