diff --git a/package.json b/package.json index 517d5df..5fb4e24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-multi-select-component", - "version": "2.0.13", + "version": "2.0.14", "description": "Simple and lightweight multiple selection dropdown component with checkboxes, search and select-all", "author": "Harsh Zalavadiya", "license": "MIT", diff --git a/src/select-panel/index.tsx b/src/select-panel/index.tsx index 32d4c87..6978214 100644 --- a/src/select-panel/index.tsx +++ b/src/select-panel/index.tsx @@ -62,7 +62,7 @@ export const SelectPanel = (props: ISelectPanelProps) => { focusSearchOnOpen ? FocusType.SEARCH : FocusType.NONE ); - const [selectAllLength, setSelectAllLength] = useState(0); + const [selectAllLength, setSelectAllLength] = useState(); const selectAllOption = { label: selectAllLabel || getString("selectAll", overrideStrings), value: "",