diff --git a/src/components/select.tsx b/src/components/select.tsx index e77a4b4..5fe7cc4 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) { + return + } else { + return + } + })} );