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
微信小程序
https://github.com/zhcode-fun/taro-propagation-demo 小程序基础库: 2.14.4 使用框架: React
// 实现子组件的自定义事件 testChange() { console.log('触发了---------------'); this.setState({}); // 此行注释,则 e.stopPropagation 正常 } // 父节点事件 onFather() { console.log('冒泡了-----------'); }
e.stopPropagation正常工作
当自定义事件中包含this.setState({}),e.stopPropagation不生效
👽 Taro v3.0.25 Taro CLI 3.0.25 environment info: System: OS: Windows 10 Binaries: Node: 14.15.1 - C:\Program Files\nodejs\node.EXE npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
已用此办法解决
Sorry, something went wrong.
No branches or pull requests
相关平台
微信小程序
复现仓库
https://github.com/zhcode-fun/taro-propagation-demo
小程序基础库: 2.14.4
使用框架: React
复现步骤
期望结果
e.stopPropagation正常工作
实际结果
当自定义事件中包含this.setState({}),e.stopPropagation不生效
环境信息
The text was updated successfully, but these errors were encountered: