File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
20
20
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 >
22
22
23
23
24
24
25
25
## Installation
26
26
27
27
28
28
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.
30
30
31
31
32
32
33
33
``` bash
34
34
35
- npm install @keyvaluesystems/react-multi-selection-ui
35
+ npm install @keyvaluesystems/react-multi-selection-ui-component
36
36
37
37
```
38
38
@@ -46,7 +46,7 @@ React Multi Selection UI can run in a very basic mode by just providing the `pro
46
46
47
47
``` jsx
48
48
49
- import MultiSelection from ' @keyvaluesystems/react-multi-selection-ui' ;
49
+ import MultiSelection from ' @keyvaluesystems/react-multi-selection-ui-component ' ;
50
50
51
51
< MultiSelection
52
52
productList= {productListArray}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const SelectionList = (props: SelectionListPropType): JSX.Element => {
33
33
} = props ;
34
34
35
35
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 )
37
37
) , [ list ] ) ;
38
38
const searchValue = ( value : string ) : void => {
39
39
if ( onSearch ?. name === 'mockConstructor' ) {
Original file line number Diff line number Diff line change 98
98
width : 96% ;
99
99
max-height : calc (100% - 42px );
100
100
overflow-y : auto ;
101
+ align-content : flex-start ;
102
+ height : 100% ;
101
103
.zeroStateImage {
102
104
width : 112px ;
103
105
height : 112px ;
You can’t perform that action at this time.
0 commit comments