Skip to content

Commit 48bcb34

Browse files
authored
fix: scroll the current search result into view (#1524)
1 parent 7ffd12c commit 48bcb34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

querybook/webapp/hooks/queryEditor/extensions/useSearchExtension.ts

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const useSearchExtension = ({
7575
if (shouldHighlight) {
7676
editorView?.dispatch({
7777
selection: EditorSelection.single(item.from, item.to),
78+
effects: EditorView.scrollIntoView(item.from),
7879
});
7980
} else {
8081
editorView?.dispatch({

0 commit comments

Comments
 (0)