Skip to content

Commit 05d5c12

Browse files
fix: search query parsing
1 parent 79d3d6f commit 05d5c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/_default/search.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ <h1 class="py-4">{{ .Title }}</h1>
7272
bubbles: true,
7373
cancelable: true,
7474
});
75-
// Trigger the input event for the search input
76-
searchInput.dispatchEvent(event);
75+
// Directly call the search function
76+
await onPageSearch({ target: { value: query } });
7777
searchInput.focus();
7878
});
7979

0 commit comments

Comments
 (0)