reset to top on new challenge (#15607)
parent
ddd852df7b
commit
6608f82d5a
|
@ -78,6 +78,7 @@ export class Challenge extends PureComponent {
|
|||
componentDidMount() {
|
||||
this.props.loadCode();
|
||||
this.props.updateSuccessMessage(randomCompliment());
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
|
|
Loading…
Reference in New Issue