diff --git a/source/components/utils/Scroll.js b/source/components/utils/Scroll.js index f0f234b16..07dcd7d6b 100644 --- a/source/components/utils/Scroll.js +++ b/source/components/utils/Scroll.js @@ -52,11 +52,17 @@ export class ScrollToElement extends Component { ) { return } - this.ref.scrollIntoView({ - behavior: this.props.behavior, - block: 'nearest', - inline: 'nearest' - }) + try { + this.ref.scrollIntoView({ + behavior: this.props.behavior, + block: 'nearest', + inline: 'nearest' + }) + } catch (error) { + this.ref.scrollIntoView({ + behavior: this.props.behavior + }) + } } componentDidMount() { this.scrollIfNeeded()