Skip to content

Commit

Permalink
fix EditableItem check not trigger props onChange (ant-design#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
agalwood authored and chenshuai2144 committed Dec 8, 2018
1 parent 268ea2b commit 3bece1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditableItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class EditableItem extends PureComponent {
check = () => {
this.setState({ editable: false });
const { value } = this.state;
const { onChange } = this.state;
const { onChange } = this.props;
if (onChange) {
onChange(value);
}
Expand Down

0 comments on commit 3bece1f

Please sign in to comment.