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

在van-popup里面使用了van-field,如果一开始填充了内容时候手机ios不会撑开高度,安卓手机正常 #5873

Open
codermie opened this issue Aug 30, 2024 · 2 comments

Comments

@codermie
Copy link

重现链接

https://developers.weixin.qq.com/s/ABMFKPmg7dT2

Vant Weapp 版本

1.11.6

描述一下你遇到的问题。

使用van-popup里面使用了van-field,如果一开始填充了内容时候手机ios不会撑开高度,安卓手机正常

重现步骤

1.启动代码片段
2.苹果手机预览小程序

设备/浏览器

苹果

@vcc0827
Copy link

vcc0827 commented Sep 7, 2024

在js中用setData处理textarea的value即可解决这个问题。
具体参考代码片段https://developers.weixin.qq.com/s/mBq6K1mV7RUR

@landluck
Copy link
Contributor

原因是 popup 弹出前 textarea 未渲染,影响了微信 auto-height 的计算,可以临时用 setData 的方式解决,暂时还没找到好的放哪

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

3 participants