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

taro3.x 使用Button组件,无法触发onLogin事件 #11546

Closed
atom-7 opened this issue Mar 31, 2022 · 2 comments · Fixed by #11721
Closed

taro3.x 使用Button组件,无法触发onLogin事件 #11546

atom-7 opened this issue Mar 31, 2022 · 2 comments · Fixed by #11721
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Milestone

Comments

@atom-7
Copy link
Contributor

atom-7 commented Mar 31, 2022

相关平台

百度小程序

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

复现步骤

<Button
         className='swan-btn-login'
         openType="login"
        onLogin={this.onSwanLogin}
       >
               <Text>授权登录</Text>
 </Button>

期望结果

onSwanLogin被调用

实际结果

授权成功并无反应,

环境信息

Taro CLI 3.3.17 environment info:
    System:
      OS: macOS 11.6.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 12.21.0 - ~/.nvm/versions/node/v12.21.0/bin/node
      npm: 6.14.11 - ~/.nvm/versions/node/v12.21.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.17 => 3.3.17 
      "@tarojs/components": "3.3.17"
      @tarojs/mini-runner: 3.3.17 => 3.3.17 
      @tarojs/runtime: 3.3.17 => 3.3.17 
      @tarojs/taro: 3.3.17 => 3.3.17 
      @tarojs/webpack-runner:3.3.17 => 3.3.17
      babel-preset-taro:3.3.17 => 3.3.17
      eslint-config-taro: 33.3.17 => 3.3.17

补充信息

疑是onLogin没正确编译成bindlogin

@taro-bot2 taro-bot2 bot added F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x labels Mar 31, 2022
@atom-7
Copy link
Contributor Author

atom-7 commented Mar 31, 2022

image

@Chen-jj
Copy link
Contributor

Chen-jj commented Apr 25, 2022

感谢反馈,3.4.8 修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants