Skip to content

Commit d699ca1

Browse files
Bug fix
1 parent aaabddf commit d699ca1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
1919

2020

21-
Try tweaking a multi selection ui component using this codesandbox link <a href="https://codesandbox.io/s/mulit-selection-ui-gzcfrn">here</a>
21+
Try tweaking a multi selection ui component using this codesandbox link <a href="https://codesandbox.io/s/multi-selection-ui-gzcfrn">here</a>
2222

2323

2424

2525
## Installation
2626

2727

2828

29-
The easiest way to use react-multi-selection-ui is to install it from npm and build it into your app with Webpack.
29+
The easiest way to use react-multi-selection-ui-component is to install it from npm and build it into your app with Webpack.
3030

3131

3232

3333
```bash
3434

35-
npm install @keyvaluesystems/react-multi-selection-ui
35+
npm install @keyvaluesystems/react-multi-selection-ui-component
3636

3737
```
3838

@@ -46,7 +46,7 @@ React Multi Selection UI can run in a very basic mode by just providing the `pro
4646

4747
```jsx
4848

49-
import MultiSelection from '@keyvaluesystems/react-multi-selection-ui';
49+
import MultiSelection from '@keyvaluesystems/react-multi-selection-ui-component';
5050

5151
<MultiSelection
5252
productList={productListArray}

src/lib/multi-select/SelectionList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const SelectionList = (props: SelectionListPropType): JSX.Element => {
3333
} = props;
3434

3535
const isItemsPresentInList = useMemo(() => (
36-
list?.length > 0 && ((hideSelected && list.filter((e) => e.status === PRODUCT_UNSELECTED_STATUS)?.length > 0) || !hideSelected)
36+
list?.length > 0 && ((hideSelected && list.filter((e) => !e.status || e.status === PRODUCT_UNSELECTED_STATUS)?.length > 0) || !hideSelected)
3737
), [list]);
3838
const searchValue = (value: string): void => {
3939
if (onSearch?.name === 'mockConstructor') {

src/lib/multi-select/styles.module.scss

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
width: 96%;
9999
max-height: calc(100% - 42px);
100100
overflow-y: auto;
101+
align-content: flex-start;
102+
height: 100%;
101103
.zeroStateImage {
102104
width: 112px;
103105
height: 112px;

0 commit comments

Comments
 (0)