Skip to content

Commit ef323fd

Browse files
committed
Prevent rare case of the container scrolling when focusing on the content card
1 parent 8e2b7b0 commit ef323fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/js/pages/layout/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function focusMain() {
5454
5555
// Otherwise, focus the content card
5656
if (!autofocusInput) {
57-
document.querySelector('#content-card')?.focus();
57+
document.querySelector('#content-card')?.focus({ preventScroll: true });
5858
}
5959
}, 100);
6060
});

0 commit comments

Comments
 (0)