Skip to content

Commit 132ca55

Browse files
committed
Update SearchHero.tsx
1 parent 872b90d commit 132ca55

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

components/dataset/_shared/SearchHero.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export default function SearchHero({
3030
<section className={`grid row-start-3 row-span-2 col-span-full pt-4 `}>
3131
<div className={`custom-container bg-white ${styles.shadowMd}`}>
3232
<div className="">
33-
<form className="min-h-[70px] flex flex-col lg:flex-row bg-white pr-5 py-3 rounded-xl">
33+
<form className="min-h-[70px] flex flex-col lg:flex-row bg-white pr-5 py-3 rounded-xl" onSubmit={e => {
34+
e.preventDefault();
35+
return false;
36+
}}>
3437
<input
3538
type="text"
3639
placeholder={`Search for ${title}`}
@@ -43,6 +46,12 @@ export default function SearchHero({
4346
value={searchValue}
4447
aria-label={`Search ${title}`}
4548
/>
49+
<button
50+
type="submit"
51+
className="sr-only"
52+
>
53+
Submit
54+
</button>
4655
</form>
4756
</div>
4857
</div>

0 commit comments

Comments
 (0)