mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: hide search results on unfocus
This commit is contained in:
1 parent
8e5a588e87
commit
ec5dfd7727
1 file changed
+2
@@ -72,6 +72,7 @@ export default function Page() {
|
|||||||
<TextField.Slot>
|
<TextField.Slot>
|
||||||
<PersonIcon height="16" width="16" />
|
<PersonIcon height="16" width="16" />
|
||||||
</TextField.Slot>
|
</TextField.Slot>
|
||||||
|
|
||||||
<TextField.Input
|
<TextField.Input
|
||||||
defaultValue={session.isTracking ? session.nickname : undefined}
|
defaultValue={session.isTracking ? session.nickname : undefined}
|
||||||
ref={input}
|
ref={input}
|
||||||
@@ -85,6 +86,7 @@ export default function Page() {
|
|||||||
|
|
||||||
handleChange(event);
|
handleChange(event);
|
||||||
}}
|
}}
|
||||||
|
onBlur={() => setShowSearchResults(false)}
|
||||||
placeholder="Search for a player..."
|
placeholder="Search for a player..."
|
||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
|
|||||||
Reference in new issue
Block a user