-
Notifications
You must be signed in to change notification settings - Fork 391
Closed
Description
Error happens when Button from "../../common/components/form"; clicked.
It is because onSave doesn't bound on the constructor in MemberPageContainer class.
Original code
constructor(props: Props) { | |
super(props); | |
this.state = { | |
member: { | |
id: -1, | |
login: '', | |
avatar_url: '', | |
} | |
}; | |
this.onFieldValueChange = this.onFieldValueChange.bind(this); |
constructor(props: any) {
super(props)
this.state = {
member: {
id: -1,
login: "",
avatar_url: ""
}
};
this.onFieldValueChange = this.onFieldValueChange.bind(this);
//You should include this
this.onSave = this.onSave.bind(this);
}
Metadata
Metadata
Assignees
Labels
No labels