Skip to content

Commit

Permalink
fix(field/select): remove unnecessary selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Feb 16, 2024
1 parent 723c4e2 commit 53e411d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Field = ({
>
{placeholder && <option value="">{placeholder}</option>}
{options.map((option, index) => (
<option key={index} value={option} selected={option === defaultValue}>
<option key={index} value={option}>
{option}
</option>
))}
Expand Down

0 comments on commit 53e411d

Please sign in to comment.