From ef323fd8b9be5a88836a8f95d4fbe2ad729864d6 Mon Sep 17 00:00:00 2001 From: Jay George Date: Fri, 19 Jun 2026 22:54:53 +0100 Subject: [PATCH] Prevent rare case of the container scrolling when focusing on the content card --- resources/js/pages/layout/Layout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });