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]van-action-sheet 自定义内容嵌套 field ios真机点击textarea除placeholder提示位置其他区域点击无法聚焦 #5789

Closed
keke599 opened this issue May 11, 2024 · 2 comments

Comments

@keke599
Copy link

keke599 commented May 11, 2024

重现链接

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

Vant Weapp 版本

1.11.5

描述一下你遇到的问题。

image
面板自定义内容嵌入textarea 不点击请输入(焦点初始位置) 无法聚焦

重现步骤

设备/浏览器

iphone13pro
ios真机应该都不行 安卓正常

@keke599 keke599 changed the title [Bug Report]van-action-sheet 自定义内容嵌套 field textarea ios真机无法聚焦 [Bug Report]van-action-sheet 自定义内容嵌套 field ios真机textarea部分区域无法聚焦 May 11, 2024
@keke599
Copy link
Author

keke599 commented May 11, 2024

给 textarea添加了个一个高度 去掉autosize="{{ { minHeight: 150 } }}" 就可以 这是什么原因呢

@keke599 keke599 changed the title [Bug Report]van-action-sheet 自定义内容嵌套 field ios真机textarea部分区域无法聚焦 [Bug Report]van-action-sheet 自定义内容嵌套 field ios真机textarea部分点击区域无法聚焦 May 11, 2024
@keke599 keke599 changed the title [Bug Report]van-action-sheet 自定义内容嵌套 field ios真机textarea部分点击区域无法聚焦 [Bug Report]van-action-sheet 自定义内容嵌套 field ios真机点击textarea除placeholder提示位置其他区域点击无法聚焦 May 11, 2024
@landluck
Copy link
Contributor

landluck commented May 13, 2024

在开启 autosize 的模式下,虽然 textarea 看着是被撑开了,但微信会根据输入内容计算高度,实际的可点击区域只有 20px。点击无响应实际是可点击区域太小。autosize 暂时不建议设置太大的值。或者手动监听 view 点后设置 focus 为 true。

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