Browse Source

Add param to onChange event

Sean Bao 7 years ago
parent
commit
419498bcc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/HeaderSearch/index.js

+ 1 - 1
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);
     }
   };