Authored by 于良

解决页面动画冲突问题 review by 草莓

... ... @@ -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() {
... ...