mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 12:13:31 +08:00
reset to top on new challenge (#15607)
This commit is contained in:
@@ -78,6 +78,7 @@ export class Challenge extends PureComponent {
|
||||
componentDidMount() {
|
||||
this.props.loadCode();
|
||||
this.props.updateSuccessMessage(randomCompliment());
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
|
||||
Reference in New Issue
Block a user