Skip to content

Commit

Permalink
Adjusting 'Selector' to not force focus when click outside happens (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeiroguilherme authored Apr 12, 2022
1 parent 1ed352e commit aae7434
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function Select({
? !e.composedPath().includes(selectContainerRef.current)
: !selectContainerRef.current.contains(e.target);
if (clickIsOutside) {
closeList();
setTextFilter(null);
setShowList(false);
}
};

Expand Down

0 comments on commit aae7434

Please sign in to comment.