Skip to content

Commit

Permalink
Hide keyboard on search submit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGustafsson committed Dec 29, 2024
1 parent 4754dea commit 1d331ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ export function Dashboard(): JSX.Element {
<input
type="text"
placeholder="Search"
enterKeyHint="search"
value={queryInput}
onChange={(e) => setQueryInput(e.target.value)}
onKeyUp={(e) =>
e.key === 'Enter' ? e.currentTarget.blur() : undefined
}
className="bg-white dark:bg-[#1e1e1e] pl-3 pr-8 py-2 text-sm rounded flex-grow shrink-0 w-full sm:w-min border border-[#e5e5e5] dark:border-[#333333]"
/>

Expand Down

0 comments on commit 1d331ad

Please sign in to comment.