From aae7434ae2fc4855707f80759abebbc025d6e80f Mon Sep 17 00:00:00 2001 From: Guilherme Ribeiro Date: Tue, 12 Apr 2022 12:14:20 +0200 Subject: [PATCH] Adjusting 'Selector' to not force focus when click outside happens (#1577) --- .../lib/src/components/internal/FormFields/Select/Select.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/lib/src/components/internal/FormFields/Select/Select.tsx b/packages/lib/src/components/internal/FormFields/Select/Select.tsx index ff4b039afe..60fee0b5f7 100644 --- a/packages/lib/src/components/internal/FormFields/Select/Select.tsx +++ b/packages/lib/src/components/internal/FormFields/Select/Select.tsx @@ -98,7 +98,8 @@ function Select({ ? !e.composedPath().includes(selectContainerRef.current) : !selectContainerRef.current.contains(e.target); if (clickIsOutside) { - closeList(); + setTextFilter(null); + setShowList(false); } };