From 638b405bb05d70b9884063e92be43d35e4309cec Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 26 Nov 2024 13:25:53 +0100 Subject: [PATCH] fix: multiple autocomplete rendering --- frontend/src/app-components/inputs/NlpPatternSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app-components/inputs/NlpPatternSelect.tsx b/frontend/src/app-components/inputs/NlpPatternSelect.tsx index 8ef8ba1..e42e2ee 100644 --- a/frontend/src/app-components/inputs/NlpPatternSelect.tsx +++ b/frontend/src/app-components/inputs/NlpPatternSelect.tsx @@ -121,7 +121,7 @@ const NlpPatternSelect = ( ref={ref} size="medium" disabled={options.length === 0} - defaultValue={defaultValue} + value={defaultValue} multiple={true} options={options} onChange={handleNlpEntityChange} @@ -183,7 +183,7 @@ const NlpPatternSelect = ( return (