You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 28, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本地环境
-操作系统:windows 10 pro
你做了什么?
组件中引入了CheckboxItem组件,并且组件调用了handleIsMemberChange方法:
<CheckboxItem onChange={this.handleIsMemberChange.bind(this)}>demo</CheckboxItem>
handleIsMemberChange(e) { console.log("member is:", e);}
你期待的结果是:
点击复选框时,触发一次onChange方法
实际上的结果:
点击复选框时,触发了两次onChange方法,经打印对象可以确定,事件对象e不是同一种:
1:member is: Object {target: Object}
2:member is: Object {dispatchConfig: Object, _targetInst: ReactDOMComponent, _dispatchListeners: Array[2], _dispatchInstances: Array[2], nativeEvent: MouseEvent…}
The text was updated successfully, but these errors were encountered: