Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #140 from alvarosaburido/bugfix/select-input-issues
Browse files Browse the repository at this point in the history
fix(select): using key as value in options
  • Loading branch information
alvarosabu authored Sep 29, 2020
2 parents ba36fd9 + 2e88f65 commit 2a2ebbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/select-input/SelectInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineComponent({
);
const options = props?.control?.options?.map(({ key, value, disabled }) =>
h('option', { key, value, disabled }, value),
h('option', { key, value: key, disabled }, value),
);
return h(
'select',
Expand Down

0 comments on commit 2a2ebbf

Please sign in to comment.