From 24aae95c63409096db5061015c2941d1d27c3186 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 7 Jul 2022 11:34:48 +0200 Subject: [PATCH] fix(react): prevent warning about controlled inputs --- app/javascript/components/ComboSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/components/ComboSearch.tsx b/app/javascript/components/ComboSearch.tsx index 3ec7f9767..72c5816b4 100644 --- a/app/javascript/components/ComboSearch.tsx +++ b/app/javascript/components/ComboSearch.tsx @@ -135,7 +135,7 @@ function ComboSearch({ {...props} onChange={handleOnChange} onBlur={onBlur} - value={value} + value={value ?? ''} autocomplete={false} id={id} aria-describedby={describedby}