We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec24513 commit 7db9935Copy full SHA for 7db9935
src/Select.vue
@@ -128,7 +128,7 @@ const filteredOptions = computed(() => {
128
129
const selectedOptions = computed(() => {
130
if (props.isMulti) {
131
- return props.options.filter((option) => (selected.value as string[]).includes(option.value));
+ return (selected.value as string[]).map((value) => props.options.find((option) => option.value === value)!);
132
}
133
134
const found = props.options.find((option) => option.value === selected.value);
0 commit comments