diff --git a/querybook/webapp/hooks/queryEditor/extensions/useSearchExtension.ts b/querybook/webapp/hooks/queryEditor/extensions/useSearchExtension.ts index e2e0d425a..f184e8122 100644 --- a/querybook/webapp/hooks/queryEditor/extensions/useSearchExtension.ts +++ b/querybook/webapp/hooks/queryEditor/extensions/useSearchExtension.ts @@ -75,6 +75,7 @@ export const useSearchExtension = ({ if (shouldHighlight) { editorView?.dispatch({ selection: EditorSelection.single(item.from, item.to), + effects: EditorView.scrollIntoView(item.from), }); } else { editorView?.dispatch({