Skip to content

Commit 0cba0a9

Browse files
🐛 auto close on clear items (#207)
1 parent b04ce74 commit 0cba0a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-multi-select-component",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"description": "Simple and lightweight multiple selection dropdown component with checkboxes, search and select-all",
55
"author": "Harsh Zalavadiya",
66
"license": "MIT",

src/multi-select/dropdown.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const ClearSelectedButton = css({
7575
background: "none",
7676
border: 0,
7777
padding: 0,
78+
display: "flex",
7879
});
7980

8081
const Dropdown = ({
@@ -154,6 +155,7 @@ const Dropdown = ({
154155
const handleClearSelected = (e) => {
155156
e.stopPropagation();
156157
contentProps["onChange"]([]);
158+
isInternalExpand && setExpanded(false);
157159
};
158160

159161
return (

0 commit comments

Comments
 (0)