Skip to content

Commit c5b1d11

Browse files
authored
fix: resolve issue preventing page navigation after selecting search result (#45)
修复选择搜索结果使用回车键无法跳转到页面的问题。 /kind bug ```release None ```
1 parent 39cc9eb commit c5b1d11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/search-widget/src/search-form.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export class SearchForm extends LitElement {
5656
<div class="p-3 z-1 bg-base sticky top-0 border-b border-divider">
5757
<form
5858
class="flex items-center ring-2 h-12 rounded-base px-2.5 ring-primary bg-base"
59+
@submit=${(e: Event) => e.preventDefault()}
5960
>
6061
<span
6162
class="shrink flex-none size-6 text-primary ${this.loading

0 commit comments

Comments
 (0)