Skip to content

Commit

Permalink
make search field required
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 23, 2023
1 parent edc2316 commit f05201c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/search/search-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const SearchResults = ({search}: { search: (search: string) => Promise<Result[]>
className="rounded-full h-20 w-full lg:w-100 text-20 mb-10"
id="query"
type="text"
required
defaultValue={searchString}
/>
<button
Expand Down
1 change: 1 addition & 0 deletions src/components/search/site-search-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const SiteSearchForm = ({...props}: ComponentProps<any>) => {
placeholder="Search this site"
id={inputId}
name="q"
required
/>
<button type="submit" className="absolute top-5 right-5">
<MagnifyingGlassIcon width={30}/>
Expand Down

1 comment on commit f05201c

@vercel
Copy link

@vercel vercel bot commented on f05201c Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.