From b81cfea0e4d8163956ec4fb5ebe9049093c15cad Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 18 Aug 2021 11:35:06 +0100 Subject: [PATCH] fix(combo-search): can input empty value --- app/javascript/components/ComboSearch.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/components/ComboSearch.jsx b/app/javascript/components/ComboSearch.jsx index 80c926f8d..a257181a4 100644 --- a/app/javascript/components/ComboSearch.jsx +++ b/app/javascript/components/ComboSearch.jsx @@ -83,6 +83,9 @@ function ComboSearch({ setExternalId(''); setExternalValue(value); } + } else if (!value) { + setExternalId(''); + setExternalValue(''); } }, [minimumInputLength]