From 7c7c436f4e361ea0687e20e08e698701b313aa6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guillois?= Date: Fri, 7 Feb 2020 17:21:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Moteur=20de=20recherche=20des=20?= =?UTF-8?q?r=C3=A8gles:=20rechercher=20d=C3=A8s=20le=20premier=20caract?= =?UTF-8?q?=C3=A8re=20saisi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/SearchBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/components/SearchBar.tsx b/source/components/SearchBar.tsx index 0eab85cf3..1004d8a10 100644 --- a/source/components/SearchBar.tsx +++ b/source/components/SearchBar.tsx @@ -109,7 +109,7 @@ export default function SearchBar({ onChange={e => { let input = e.target.value setInput(input) - if (input.length > 2) worker.postMessage({ input }) + if (input.length > 0) worker.postMessage({ input }) }} /> {input.length > 2 &&