File tree Expand file tree Collapse file tree 3 files changed +36
-7
lines changed Expand file tree Collapse file tree 3 files changed +36
-7
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,23 @@ import React from 'react'
2
2
3
3
export default function CloseIcon ( ) {
4
4
return (
5
- < svg className = 'msl-close-icn' >
6
- < line x1 = '0' y1 = '0' x2 = '15' y2 = '15' />
7
- < line x1 = '0' y1 = '15' x2 = '15' y2 = '0' />
5
+ < svg viewBox = '0 0 10 10' className = 'msl-close-icn' >
6
+ < line
7
+ stroke = 'currentColor'
8
+ strokeLinecap = 'round'
9
+ x1 = '0'
10
+ y1 = '0'
11
+ x2 = '10'
12
+ y2 = '10'
13
+ />
14
+ < line
15
+ stroke = 'currentColor'
16
+ strokeLinecap = 'round'
17
+ x1 = '0'
18
+ y1 = '10'
19
+ x2 = '10'
20
+ y2 = '0'
21
+ />
8
22
</ svg >
9
23
)
10
24
}
Original file line number Diff line number Diff line change @@ -2,9 +2,23 @@ import React from 'react'
2
2
3
3
export default function DownIcon ( ) {
4
4
return (
5
- < svg className = 'msl-arrow-icn' >
6
- < line x1 = '10' y1 = '15' x2 = '2' y2 = '7' />
7
- < line x1 = '18' y1 = '7' x2 = '10' y2 = '15' />
5
+ < svg viewBox = '0 0 20 20' className = 'msl-arrow-icn' >
6
+ < line
7
+ stroke = 'currentColor'
8
+ strokeLinecap = 'round'
9
+ x1 = '10'
10
+ y1 = '14'
11
+ x2 = '4'
12
+ y2 = '8'
13
+ />
14
+ < line
15
+ stroke = 'currentColor'
16
+ strokeLinecap = 'round'
17
+ x1 = '16'
18
+ y1 = '8'
19
+ x2 = '10'
20
+ y2 = '14'
21
+ />
8
22
</ svg >
9
23
)
10
24
}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function MultiSelect({
151
151
152
152
setValue ( preDefinedValue )
153
153
// close on option select
154
- closeOnSelect && setMenuOpen ( false )
154
+ closeOnSelect && singleSelect && setMenuOpen ( false )
155
155
} , [ defaultValue ] )
156
156
157
157
const setNewValue = ( val ) => {
@@ -176,6 +176,7 @@ function MultiSelect({
176
176
}
177
177
return { label, value }
178
178
}
179
+
179
180
const addValue = ( newValObj ) => {
180
181
let tmp = [ ...value ]
181
182
if ( singleSelect ) {
You can’t perform that action at this time.
0 commit comments