Skip to content

Commit

Permalink
fix: close search on click of link
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Oct 31, 2024
1 parent a7c440c commit 682f032
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/routes/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ const SearchModal = ({close}: {close: () => void}) => {
{search.data
? search.data.map(({label, link}) => {
return (
<Link key={link} to={link} className="bg-gray-300 p-2 rounded">
<Link
key={link}
to={link}
className="bg-gray-300 p-2 rounded"
onClick={close}
>
{label}
</Link>
)
Expand Down

0 comments on commit 682f032

Please sign in to comment.