feat: hide search results on unfocus

This commit is contained in:
TrèsAbhi committed 2023-10-01 15:18:50 -05:00
1 parent 8e5a588e87
commit ec5dfd7727
1 file changed
+2
+2
View File
@@ -72,6 +72,7 @@ export default function Page() {
<TextField.Slot>
<PersonIcon height="16" width="16" />
</TextField.Slot>
<TextField.Input
defaultValue={session.isTracking ? session.nickname : undefined}
ref={input}
@@ -85,6 +86,7 @@ export default function Page() {
handleChange(event);
}}
onBlur={() => setShowSearchResults(false)}
placeholder="Search for a player..."
/>
</TextField.Root>