diff --git a/assets/controllers/loading_controller.js b/assets/controllers/loading_controller.js index ec87b76..b9f7bdb 100644 --- a/assets/controllers/loading_controller.js +++ b/assets/controllers/loading_controller.js @@ -7,5 +7,6 @@ export default class extends Controller { toggle() { this.indicatorTarget.classList.remove(this.hiddenClass) + this.element.scrollIntoView({ block: 'start', behavior: 'smooth'}) } -} \ No newline at end of file +}