feat: use if

This commit is contained in:
TrèsAbhi committed 2023-10-01 16:19:20 -05:00
1 parent 7bb3c60a61
commit 15f32a0044
1 file changed
+1 -1
+1 -1
View File
@@ -89,7 +89,7 @@ export default function Page() {
}}
onBlur={(event) => {
// TODO: remove this hack when https://github.com/radix-ui/primitives/issues/2193 is fixed
showSearchResults && event.target.focus();
if (showSearchResults) event.target.focus();
}}
onKeyDown={(event) => {
if (event.key === 'Escape') {