diff --git a/resources/js/pages/layout/Layout.vue b/resources/js/pages/layout/Layout.vue index 361dc12b543..8da3fbd0ccf 100644 --- a/resources/js/pages/layout/Layout.vue +++ b/resources/js/pages/layout/Layout.vue @@ -54,7 +54,7 @@ function focusMain() { // Otherwise, focus the content card if (!autofocusInput) { - document.querySelector('#content-card')?.focus(); + document.querySelector('#content-card')?.focus({ preventScroll: true }); } }, 100); });