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

Commit 2a2ebbf

Browse files
authored
Merge pull request #140 from alvarosaburido/bugfix/select-input-issues
fix(select): using key as value in options
2 parents ba36fd9 + 2e88f65 commit 2a2ebbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/select-input/SelectInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineComponent({
1818
);
1919
2020
const options = props?.control?.options?.map(({ key, value, disabled }) =>
21-
h('option', { key, value, disabled }, value),
21+
h('option', { key, value: key, disabled }, value),
2222
);
2323
return h(
2424
'select',

0 commit comments

Comments
 (0)