fix edge compatibility

This commit is contained in:
xmcp
2019-06-14 16:18:18 +08:00
parent ed4794ed5a
commit 00ee08f4de

View File

@@ -9,7 +9,8 @@ export class Sidebar extends PureComponent {
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
//console.log('sidebar top'); //console.log('sidebar top');
this.sidebar_ref.current.scrollTo(0,0); if(this.sidebar_ref.current)
this.sidebar_ref.current.scrollTop=0;
} }
render() { render() {