From 3bece1fc73b7f3019f6728819a77352d010e0485 Mon Sep 17 00:00:00 2001 From: Dr_rOot Date: Sat, 8 Dec 2018 13:42:57 +0800 Subject: [PATCH] fix EditableItem check not trigger props onChange (#3092) --- src/components/EditableItem/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditableItem/index.js b/src/components/EditableItem/index.js index 5b2ef002..40034d0a 100644 --- a/src/components/EditableItem/index.js +++ b/src/components/EditableItem/index.js @@ -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); } -- GitLab