账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    ng-zorro-antd-mobile的TextareaItem组件autoHeight有Bug
    47
    0
    问题描述ng-zorro-antd-mobile的TextareaItem组件autoHeight有Bug问题出现的环境背景及自己尝试过哪些方法ng-zorro-antd-mobile的TextareaItem组件autoHeight有Bug:steps:使用TextareaItem组件并设置autoHeight在一个页面上使用多个TextareaItem组件,都具有自动高度从上到下一个一个输入一点字下面有些TextareaItem输入时就会自动滚动页面,刚开始以为是focus问题,怎么设置都关闭不了然后升级ng到11,然后使用5.0.x的版本发现还是这样,然后将autoHeight设置关闭就没有该问题了其他发现:在react版本有人提过该问题 - TextareaItem autoHeight 时,频幕滚动问题 · Issue #1858 · ant-design/ant-design-mobile,貌似修复了;但是在ng版本,我搜索到某一次fix又把相关代码去除了,所以有点迷糊:ng版本去除的commit相关代码 <TextareaItem class="b-r" [autoHeight]="true" [count]="count" [rows]="rows" [(ngModel)]="commentText" [ngClass]="{'one-rows':rows===1,'focus':forceFocus}" [placeholder]="'请输入评论'" [autoFocus]="true"> </TextareaItem>你期待的结果是什么?实际看到的错误信息又是什么?输入的时候autoHeight能正常生效,也不会莫名其妙浏览器自行滚动
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 轻轻易 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部