File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,23 +9,23 @@ import DropdownV2 from './DropdownV2';
9
9
const list : DropDownItem [ ] = [
10
10
{
11
11
id : 'A001' ,
12
+ value : 'A001' ,
12
13
name : 'Distributor' ,
13
- value : 'Distributor' ,
14
14
} ,
15
15
{
16
16
id : 'A002' ,
17
+ value : 'A002' ,
17
18
name : 'Distributor A' ,
18
- value : 'Distributor-A' ,
19
19
} ,
20
20
{
21
21
id : 'A003' ,
22
+ value : 'A003' ,
22
23
name : 'Distributor B' ,
23
- value : 'Distributor-B' ,
24
24
} ,
25
25
{
26
26
id : 'A004' ,
27
+ value : 'A004' ,
27
28
name : 'Distributor C' ,
28
- value : 'Distributor-C' ,
29
29
} ,
30
30
] ;
31
31
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const DropdownV2: React.VFC<DropDownProps> = (props) => {
148
148
onClick = { handleOnClickSelect }
149
149
{ ...otherProps }
150
150
>
151
- { selectedId ?? placeholder }
151
+ { selectedItem ?. name ?? placeholder }
152
152
< Icon className = "Dropdown-icon" >
153
153
{ isOpen ? < KeyboardArrowUp /> : < KeyboardArrowDown /> }
154
154
</ Icon >
You can’t perform that action at this time.
0 commit comments