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) => {
|
{items.map(({ label, value }, index) => {
|
||||||
if (label === current) {
|
if (label === current) {
|
||||||
return <option
|
return (
|
||||||
|
<option
|
||||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||||
key={[label, index].join("")}
|
key={[label, index].join("")}
|
||||||
value={value.toString()}
|
value={value.toString()}
|
||||||
|
@ -43,14 +44,17 @@ const Select = ({
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</option>
|
</option>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return <option
|
return (
|
||||||
|
<option
|
||||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||||
key={[label, index].join("")}
|
key={[label, index].join("")}
|
||||||
value={value.toString()}
|
value={value.toString()}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</option>
|
</option>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Add table
Reference in a new issue