...
|
...
|
@@ -25,9 +25,14 @@ export default class BrandSearch extends Component { |
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
this.searchBar && this.searchBar.focus();
|
|
|
this.timer = setTimeout(() => {
|
|
|
this.searchBar && this.searchBar.focus();
|
|
|
}, 0);
|
|
|
}
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
this.timer && clearTimeout(this.timer);
|
|
|
}
|
|
|
|
|
|
|
|
|
render() {
|
...
|
...
|
|