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

[紧急]微信小程序冒泡dataset能拿到,但是支付宝小程序拿不到data-属性 #14528

Closed
SuJunming opened this issue Sep 12, 2023 · 6 comments · Fixed by #14535, #14582 or #14586
Labels
bug Something isn't working F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@SuJunming
Copy link
Contributor

相关平台

支付宝小程序

小程序基础库: 3.0.0
使用框架: React

复现步骤

微信小程序冒泡,在父节点onClick的event中可以取到子节点dataset中的data-值,
但是支付宝小程序中却是空

期望结果

支付宝小程序和微信小程序保持一致

实际结果

支付宝小程序中却是空

环境信息

👽 Taro v3.6.15


  Taro CLI 3.6.15 environment info:
    System:
      OS: macOS 12.0.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.21.3 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 6.14.18 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.15 => 3.6.15 
      @tarojs/components: 3.6.15 => 3.6.15 
      @tarojs/mini-runner: 3.6.15 => 3.6.15 
      @tarojs/plugin-framework-react: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-alipay: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-jd: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-qq: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-swan: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-tt: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-weapp: 3.6.15 => 3.6.15 
      @tarojs/react: 3.6.15 => 3.6.15 
      @tarojs/runtime: 3.6.15 => 3.6.15 
      @tarojs/shared: 3.6.15 => 3.6.15 
      @tarojs/taro: 3.6.15 => 3.6.15 
      @tarojs/webpack5-runner: 3.6.15 => 3.6.15 
      babel-preset-taro: 3.6.15 => 3.6.15 
      eslint-config-taro: 3.6.15 => 3.6.15 
      react: ^18.0.0 => 18.2.0 
      taro-ui: 3.1.0-beta.4 => 3.1.0-beta.4 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Sep 12, 2023
@SuJunming
Copy link
Contributor Author

微信:
image

@SuJunming
Copy link
Contributor Author

支付宝:
image

@SuJunming
Copy link
Contributor Author

具体代码:
image

@SuJunming SuJunming changed the title 微信小程序冒泡dataset能拿到,但是支付宝小程序拿不到data-属性 [紧急]微信小程序冒泡dataset能拿到,但是支付宝小程序拿不到data-属性 Sep 12, 2023
@SuJunming
Copy link
Contributor Author

@Chen-jj

@SuJunming
Copy link
Contributor Author

image
原版本: 3.5.6
升级后: 3.6.15发现的

@SuJunming
Copy link
Contributor Author

image
这段代码微信里面可以正常运行,但是在支付宝冒泡场景下会有bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
2 participants