ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.04k stars 14.63k forks source link

[bug report] El input textarea type autosize maxRows prop does not work #20772

Open ElsaOOo opened 3 years ago

ElsaOOo commented 3 years ago

Element UI version

2.15.0

OS/Browsers version

chrome 86

Vue version

2.6.12

Reproduction Link

https://github.com/ElemeFE/element/issues/16594

Steps to reproduce

官方文档中 https://element.eleme.io/#/zh-CN/component/input 可自适应文本高度的文本域,其中设置了maxRows: 4,但是仍然可以无限制往下拉动,maxRows并没有生效

What is Expected?

设置了autoSize 的 maxRows的值,textArea应该有maxHeight

What is actually happening?

设置了autoSize 的 maxRows的值,textArea并没有maxHeight

element-bot commented 3 years ago

Translation of this issue:

Element UI version

2.15.0

OS/Browsers version

chrome 86

Vue version

2.6.12

Reproduction Link

https://github.com/ElemeFE/element/issues/16594

Steps to reproduce

In official documents https://element.eleme.io/#/zh -CN/component/input

A text field with adaptive text height, in which maxRows: 4 is set, but it can still be pulled down without restriction, and maxRows does not take effect

What is Expected?

The maxRows value of autosize is set. Textarea should have maxheight

What is actually happening?

The maxRows value of autosize is set, and textarea has no maxheight

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.