From 419498bcc72d85748777b286314a9f33b487f360 Mon Sep 17 00:00:00 2001 From: Sean Bao Date: Tue, 7 Aug 2018 11:10:26 +0800 Subject: [PATCH] Add param to onChange event --- src/components/HeaderSearch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HeaderSearch/index.js b/src/components/HeaderSearch/index.js index 3f393642..95b631c3 100644 --- a/src/components/HeaderSearch/index.js +++ b/src/components/HeaderSearch/index.js @@ -45,7 +45,7 @@ export default class HeaderSearch extends PureComponent { this.setState({ value }); const { onChange } = this.props; if (onChange) { - onChange(); + onChange(value); } }; -- GitLab