mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Bind handleChange Instead of Calling (#9764)
(cherry picked from commit 1f667fd37f)
This commit is contained in:
committed by
Dan Abramov
parent
3d019b3cc7
commit
f593e98201
@@ -320,7 +320,7 @@ class Item extends React.Component {
|
||||
class List extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.handleChange = this.handleChange();
|
||||
this.handleChange = this.handleChange.bind(this);
|
||||
}
|
||||
|
||||
handleChange() {
|
||||
|
||||
Reference in New Issue
Block a user