Skip to content

Commit 79e3991

Browse files
committed
fix: prevent scroll when time selector is focused
1 parent 2908c09 commit 79e3991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/search-time/selector/time-selector-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const NumberSeriesScrollView = ({
106106
(node: HTMLDivElement | null) => {
107107
scrollContainerRef.current = node;
108108
if (node && autoFocus) {
109-
node.focus();
109+
node.focus({ preventScroll: true });
110110
}
111111
},
112112
[autoFocus],

0 commit comments

Comments
 (0)