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 rows 存在默认值 2,导致 autoSize > minRows 传入 1 无效,组件高度应为 rows为1,但实际上是rows为2的高度 #6249

Closed
x011223 opened this issue Jul 14, 2023 · 1 comment · Fixed by #6256
Labels

Comments

@x011223
Copy link

x011223 commented Jul 14, 2023

Version of antd-mobile

5.29.1

Operating system and its version

iOS, Android

Browser and its version

ios chrome 110.0

Sandbox to reproduce

No response

What happened?

官网示例 的codeSandBox即可复现.

 <TextArea
    placeholder='请输入内容'
    value={value}
    onChange={val => {
      setValue(val)
    }}
    autoSize={{ minRows: 1 }}
  />

image
image
image

Relevant log output

No response

@x011223 x011223 added the bug label Jul 14, 2023
@x011223 x011223 changed the title TextArea rows 存在默认值 2,导致 autoSize > minRows 传入 1 无效,组件高度错误 TextArea rows 存在默认值 2,导致 autoSize > minRows 传入 1 无效,组件高度应为 rows为1,但实际上是rows为2的高度 Jul 14, 2023
@miracles1919
Copy link
Contributor

@zombieJ 讨论了一下,min 和 max 表示的是范围,并不是当前值,所以是预期行为哈~

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

Successfully merging a pull request may close this issue.

2 participants