mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 13:09:51 +01:00
feat: use if
This commit is contained in:
1 parent
7bb3c60a61
commit
15f32a0044
1 file changed
+1
-1
@@ -89,7 +89,7 @@ export default function Page() {
|
|||||||
}}
|
}}
|
||||||
onBlur={(event) => {
|
onBlur={(event) => {
|
||||||
// TODO: remove this hack when https://github.com/radix-ui/primitives/issues/2193 is fixed
|
// 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) => {
|
onKeyDown={(event) => {
|
||||||
if (event.key === 'Escape') {
|
if (event.key === 'Escape') {
|
||||||
|
|||||||
Reference in new issue
Block a user