陈帅
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
src/components/HeaderSearch/index.js
|
|
|
@ -65,11 +65,11 @@ export default class HeaderSearch extends PureComponent { |
|
|
|
onChange = value => { |
|
|
|
const { onSearch, onChange } = this.props; |
|
|
|
this.setState({ value }); |
|
|
|
if (onSearch){ |
|
|
|
onSearch(value); |
|
|
|
if (onSearch) { |
|
|
|
onSearch(value); |
|
|
|
} |
|
|
|
if (onChange){ |
|
|
|
onChange(value); |
|
|
|
if (onChange) { |
|
|
|
onChange(value); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|