NG-ZORRO / ng-zorro-antd-mobile

A configurable Mobile UI components based on Ant Design Mobile and Angular. 🐜
http://ng.mobile.ant.design
Other
796 stars 238 forks source link

ng-zorro-antd-mobile的TextareaItem组件autoHeight有Bug #820

Open Huansheng1 opened 2 years ago

Huansheng1 commented 2 years ago

Version

5.0.1

Environment

window10、angular10-11

Reproduction link

https://stackblitz.com/edit/angular-5me1fc?file=src/app/app.component.ts

Steps to reproduce

ng-zorro-antd-mobile的TextareaItem组件autoHeight有Bug:

steps

  1. 使用TextareaItem组件并设置autoHeight
  2. 在一个页面上使用多个TextareaItem组件,都具有自动高度
  3. 从上到下一个一个输入一点字
  4. 下面有些TextareaItem输入时就会自动滚动页面,刚开始以为是focus问题,怎么设置都关闭不了
  5. 然后升级ng到11,然后使用5.0.x的版本发现还是这样,然后将autoHeight设置关闭就没有该问题了

其他发现

在react版本有人提过该问题 - TextareaItem autoHeight 时,频幕滚动问题 · Issue #1858 · ant-design/ant-design-mobile,貌似修复了;但是在ng版本,我搜索到某一次fix又把相关代码去除了,所以有点迷糊:ng版本去除的commit

What is expected?

autoHeight不会滚动页面

What is actually happening?

autoHeight会影响页面滚动

Other?

xcLtw commented 2 years ago

使用Reproduction link ,没有能复现你所描述的现象。另外,现在最新angular支持版本是12,你是否没有在12版本下使用测试过? image