Skip to content

Commit

Permalink
Remove preventDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
8bittitan committed Jun 15, 2023
1 parent a3bc045 commit ab3f94f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/docsearch-react/src/Hit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ interface HitProps {
}

export function Hit({ hit, children }: HitProps) {
return (
<a href={hit.url} onClick={(e) => e.preventDefault()}>
{children}
</a>
);
return <a href={hit.url}>{children}</a>;
}

0 comments on commit ab3f94f

Please sign in to comment.