-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro 3 版本 Map组件无法触发onClick或onTap事件。 #11416
Comments
等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!
Thank you so much! |
微信小程序 本人 亲测,开发者工具和真机 效果均正常,可以触发onClick 事件 |
+1 没有复现,可以新建一个项目对比一下 |
This was referenced Mar 14, 2022
我在3.4.3 版本也遇到了,楼主找到原因或解决方法了吗? |
已找到解决方法 正确的用法:@tap="ontap" 期望结果 |
怎么解决的 我也遇到了同样的问题 只不过是第一次不生效 之后生效 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 2.22.0
使用框架: React
复现步骤
1.代码如下:
<Map
latitude={39.954548}
longitude={116.186951}
style={{ height: '100vh', width: '100vw' }}
onClick={() => {
Taro.showToast({
title: 'title11',
icon: 'success',
duration: 2000
});
}}
>
2.微信开发者工具中第二次点击才可以触发事件,但返回的是上一次点击的结果,真机预览无法触发事件。
期望结果
可以正常触发onClick或onTap
实际结果
没有触发onClick或onTap
环境信息
The text was updated successfully, but these errors were encountered: