diff --git a/source/components/Simu.js b/source/components/Simu.js index abe7fc7b8..92df8b2ba 100644 --- a/source/components/Simu.js +++ b/source/components/Simu.js @@ -114,7 +114,7 @@ export default class Simu extends Component {
{displayConversation && ( <> - + )} diff --git a/source/components/utils/ScrollToTop.js b/source/components/utils/ScrollToTop.js index cc86ea654..b899fc337 100644 --- a/source/components/utils/ScrollToTop.js +++ b/source/components/utils/ScrollToTop.js @@ -1,9 +1,13 @@ import { Component } from 'react' export default class ScrollToTop extends Component { + props = { + behavior: 'auto' + } componentDidMount() { window.scroll({ - top: 0 + top: 0, + behavior: this.props.behavior }) } render() {