Skip to content

TextArea height calculation error when autosize is configured #9107

Closed
@cuyl

Description

Version

3.1.4

Environment

edge & IE

Reproduction link

https://codesandbox.io/s/qqq1ynq16j

Steps to reproduce

set paddingRight to 0
set autosize any minRows and maxRows

  <div>
    <!-- autosize work -->
    <TextArea style={{ paddingRight: 0 }} placeholder="Autosize height based on content lines" autosize />
    <div style={{ margin: '24px 0' }} />
    <!-- autosize error -->
    <TextArea style={{ paddingRight: 0 }} placeholder="Autosize height with minimum and maximum number of lines" autosize={{ minRows: 2, maxRows: 6 }} />
  </div>

see https://codesandbox.io/s/qqq1ynq16j edge or IE

What is expected?

autosize

What is actually happening?

textarea height calculation error

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions