Fix styling on select.tsx
This commit is contained in:
parent
cfbe492ef8
commit
c07c45a72b
1 changed files with 6 additions and 2 deletions
|
@ -35,7 +35,8 @@ const Select = ({
|
|||
>
|
||||
{items.map(({ label, value }, index) => {
|
||||
if (label === current) {
|
||||
return <option
|
||||
return (
|
||||
<option
|
||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||
key={[label, index].join("")}
|
||||
value={value.toString()}
|
||||
|
@ -43,14 +44,17 @@ const Select = ({
|
|||
>
|
||||
{label}
|
||||
</option>
|
||||
);
|
||||
} else {
|
||||
return <option
|
||||
return (
|
||||
<option
|
||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||
key={[label, index].join("")}
|
||||
value={value.toString()}
|
||||
>
|
||||
{label}
|
||||
</option>
|
||||
);
|
||||
}
|
||||
})}
|
||||
</select>
|
||||
|
|
Loading…
Reference in a new issue