We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述
点击tabs组件,onClick事件触发两次
代码:
小程序效果:
复现步骤 如上
期望行为 点击tabs组件,onClick事件触发一次
报错信息 无
系统信息
Taro v1.2 及以上版本已添加 taro info 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。
taro info
👽 Taro v1.2.4
Taro CLI 1.2.4 environment info: System: OS: Windows 10 Binaries: Node: 11.4.0 - D:\nodejs\node.EXE npm: 6.4.1 - D:\nodejs\npm.CMD
` taro-ui
The text was updated successfully, but these errors were encountered:
自己去改源码。componentWillReceiveProps(nextProps) { if (nextProps.scroll !== this.props.scroll) { this.getTabHeaderRef(); } /* if (nextProps.current !== this.state.current) { this.handleClick(nextProps.current); } */ } 注释掉就好了
Sorry, something went wrong.
fix(tabs): 修复二次点击 #321
a57aa7f
Merge branch 'next' into dev
099bb32
* next: fix(tabs): 修复二次点击 #321
jimczj
No branches or pull requests
问题描述
点击tabs组件,onClick事件触发两次
代码:
小程序效果:
复现步骤
如上
期望行为
点击tabs组件,onClick事件触发一次
报错信息
无
系统信息
👽 Taro v1.2.4
Taro CLI 1.2.4 environment info:
System:
OS: Windows 10
Binaries:
Node: 11.4.0 - D:\nodejs\node.EXE
npm: 6.4.1 - D:\nodejs\npm.CMD
`
taro-ui
The text was updated successfully, but these errors were encountered: