Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Commit b789ad2

Browse files
committed
fix: Prevent focus scroll in overlays
1 parent 697e720 commit b789ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Vue3DatePicker/components/SelectionGrid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
const elm = unrefElement(gridWrapRef);
8383
if (elm) {
8484
if (!textInput.value) {
85-
elm.focus();
85+
elm.focus({ preventScroll: true });
8686
}
8787
scrollable.value = elm.clientHeight < elm.scrollHeight;
8888
}

0 commit comments

Comments
 (0)