Skip to content

Commit

Permalink
feat: disable autoComplete for searchbar (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol-Baranwal authored Jul 31, 2023
1 parent 1afa4e7 commit b475a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Searchbar/Searchbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { subcategoryArray } from '../../types'
interface SearchbarProps {
setSearch: (search: string) => void
}

export const Searchbar: React.FC<SearchbarProps> = ({ setSearch }) => {
const router = useRouter()
const query = router.query.query
Expand Down Expand Up @@ -75,6 +75,7 @@ export const Searchbar: React.FC<SearchbarProps> = ({ setSearch }) => {
placeholder="Quick search..."
value={searchQuery}
onChange={handleSearchChange}
autoComplete="off"
required
/>
<button
Expand Down

1 comment on commit b475a66

@vercel
Copy link

@vercel vercel bot commented on b475a66 Jul 31, 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.