diff --git a/src/components/select.tsx b/src/components/select.tsx index e77a4b4..1bf0754 100644 --- a/src/components/select.tsx +++ b/src/components/select.tsx @@ -32,17 +32,27 @@ const Select = ({ data-testid={"select" + (testId ? "-" + testId : "")} onChange={(e) => update(items, onChange, e)} className={className} - defaultValue={current} > - {items.map(({ label, value }, index) => ( - - ))} + {items.map(({ label, value }, index) => { + if (label === current) {( + + )} else {( + + )} + })} );