基础库2.21.1下label组件无法触发button对应的onAppShareMessage函数

灏忕▼搴� 文章 2021-11-30 19:40 19 0 全屏看文

基础库2.21.1下label组件无法触发button对应的onAppShareMessage函数The label component under the base library 2.21.1 cannot trigger the onAppShareMessage function corresponding to the button

基础库2.21.1下label组件无法触发button对应的onAppShareMessage函数
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug label组件 微信iOS客户端 8.0.16 2.21.1
<button id='share' open-type="share" plain='true'></button><label for='share' class="share_list_item_img">  <image class="share_list_item_img" src="{{item.icon}}"></image></label>

代码如上,基础库版本2.21.1下label组件无法触发open-type为share的button对应的onAppShareMessage生命周期函数,开发者工具和手机都不行。开发者工具设置调试基础库为2.21.0之后正常触发,推送2.21.0基础库到手机上,手机也正常。现在基础库有灰度到2.21.1的手机用户,点击分享按钮都不能分享了,请问这个问题什么时候能解决?

Framework type problem type API / component name terminal type wechat version basic library version applet bug label component wechat IOS client 8.0.16 2.21.1 < button id ='share 'open type = "share" plain ='true' > < / button > < label for ='share 'class = "share_list_item_img" > < image class = "share_list_item_img" SRC = "{item. Icon}" > < / Image > < / label > the code is as above, Under the basic library version 2.21.1, the label component cannot trigger the onappsharemessage life cycle function corresponding to the button with open type share, neither developer tools nor mobile phones. After the developer tool sets the debugging basic library to 2.21.0, it is triggered normally. Push the 2.21.0 basic library to the mobile phone, and the mobile phone is also normal. Now there are mobile phone users with grayscale to 2.21.1 in the basic library. They can't share by clicking the share button. When can this problem be solved?

鍥炵瓟锛�

社区技术运营专员-Jahozheng:

问题已复现,我们会尽快进行修复。

旧崖。:

我这边也出现了这个问题

风禾:

image标签直接写在button里就行了

-EOF-