From 0707c14e0577605ab10f70ec680b7ff88bb145e7 Mon Sep 17 00:00:00 2001 From: Frederico Castro Date: Sat, 13 Dec 2025 18:28:10 -0300 Subject: [PATCH] Enable Enter key for search --- frontend/src/App.jsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 78869b0..554c1ac 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -79,6 +79,12 @@ function App() { } }; + const handleSubmitBuscar = (e) => { + e.preventDefault(); + if (buscando) return; + handleBuscar(); + }; + if (loading) { return (
@@ -115,17 +121,17 @@ function App() { -
+
setBusca(e.target.value)} /> - -
+