Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea autosize 控制文本框高度有误差 #7203

Closed
stingshen opened this issue Jan 13, 2022 · 1 comment
Closed

textarea autosize 控制文本框高度有误差 #7203

stingshen opened this issue Jan 13, 2022 · 1 comment

Comments

@stingshen
Copy link
Contributor

Reproduction link

https://stackblitz.com/edit/angular-evwt1z?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

  1. 创建一个 autosize 的 textarea
  2. 填入一定数量的字符串
  3. 发现字符串高度超过文本框高度后,文本框并没有自动调高

What is expected?

不会出现滚动条,文本框自动调整高度

What is actually happening?

文本框并没有自动调高

Peek 2022-01-13 15-14

Environment Info
ng-zorro-antd 13.0.0
Browser Chrome Version 97.0.4692.71
@zorro-bot
Copy link

zorro-bot bot commented Jan 13, 2022

Translation of this issue:

TextArea AutoSize Control Text Box Highness Error

reproduction link

[https://stackblitz.com/edit/angular-evwt1z?file=src%2fapp%2fapp.component.ts](https://stackblitz.com/edit/angular-evwt1z?file=src%2fApp%2FAPP. Component.ts)

steps to reproduce

  1. Create an AutoSize Textarea
  2. Fill in a certain number of strings
  3. After the string height exceeds the text box height, the text box does not automatically adjust.

What is expected?

No scroll bar, text box automatically adjusts the height

What is actually happens?

Text box does not have automatic adjustment

! [Peek 2022-01-13 15-14] (https://user-images.githubuserContent.com/6214067/149283322-5312C840-46D6-41CB-9E06-68940796D4F0.GIF)

ENVIRONMENT INFO
Ng-Zorro-ANTD 13.0.0
Browser Chrome Version 97.0.4692.71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant