Open
Description
when i insert data in login filed it shows in the console.log set state questionAnswer arguments but var that is storing questionAnswer remain undefined
key: 'handleAnswerChange',
value: function handleAnswerChange(questionId, questionAnswer) { debugger;
var questionAnswers = _.chain(this.state.questionAnswers).set(questionId, questionAnswer).value();
this.setState({
questionAnswers: questionAnswers
}, this.props.onUpdate.bind(null, questionAnswers));
}
when i update questionAnwer it remains undefined but in the lodash function arguments it shows updated value
Metadata
Assignees
Labels
No labels