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'
22
33export default function CloseIcon ( ) {
44 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+ />
822 </ svg >
923 )
1024}
Original file line number Diff line number Diff line change @@ -2,9 +2,23 @@ import React from 'react'
22
33export default function DownIcon ( ) {
44 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+ />
822 </ svg >
923 )
1024}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function MultiSelect({
151151
152152 setValue ( preDefinedValue )
153153 // close on option select
154- closeOnSelect && setMenuOpen ( false )
154+ closeOnSelect && singleSelect && setMenuOpen ( false )
155155 } , [ defaultValue ] )
156156
157157 const setNewValue = ( val ) => {
@@ -176,6 +176,7 @@ function MultiSelect({
176176 }
177177 return { label, value }
178178 }
179+
179180 const addValue = ( newValObj ) => {
180181 let tmp = [ ...value ]
181182 if ( singleSelect ) {
You can’t perform that action at this time.
0 commit comments