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

[Bug Report] Field type="textarea" autosize 在非 body 滚动区域时,输入内容产生的滚动条,页面会往上跳 #13166

Open
azhe93 opened this issue Oct 18, 2024 · 2 comments

Comments

@azhe93
Copy link

azhe93 commented Oct 18, 2024

Reproduction Link

https://codesandbox.io/p/live/5a77dba7-1034-458c-9cf3-fa00a2234aa7

Vant Version

2.x

Describe the Bug

Field type="textarea" autosize 在非 body 滚动区域时,输入内容直至产生的滚动条,点击 header 部分页面会往上跳。

Reproduce Steps

见 demo

Device / Browser

No response

@inottn
Copy link
Collaborator

inottn commented Oct 19, 2024

This issue also exists in 4.x.

@azhe93
Copy link
Author

azhe93 commented Oct 25, 2024

在 textarea 下方新增一个不可见的 textarea 用于计算高度,两个 textarea 的值同步,项目上暂时用自实现的组件解决了

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

No branches or pull requests

2 participants