Skip to content

Commit

Permalink
select field: fix passing default value
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Sep 11, 2024
1 parent 03f368a commit 2317992
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/forms/widgets/select/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export default class Dropdown extends Component {
clearable={clearable}
required={required}
optimized
defaultValue={multiple ? [] : ""}
value={value}
defaultValue={value}
/>
{description && <label className="helptext">{description}</label>}
</>
Expand Down

0 comments on commit 2317992

Please sign in to comment.