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

Commit 2e88f65

Browse files
committed
fix(select): using key as value in options
1 parent ba36fd9 commit 2e88f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/select-input/SelectInput.vue

Lines changed: 1 addition & 1 deletion
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)