Skip to content

Commit 37d9f38

Browse files
committed
mitosheet: don't scroll on focus for better large height interaction
1 parent 486d39f commit 37d9f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitosheet/src/mito/components/endo/focusUtils.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
export const focusGrid = (containerDiv: HTMLDivElement | null | undefined): void => {
1919
if (containerDiv) {
20-
containerDiv.focus()
20+
containerDiv.focus({preventScroll: true})
2121
}
2222
}

0 commit comments

Comments
 (0)