We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45dd157 commit 3ccbe10Copy full SHA for 3ccbe10
src/Select.vue
@@ -72,8 +72,9 @@ const availableOptions = computed<GenericOption[]>(() => {
72
}));
73
74
// Remove already selected values from the list of options, when in multi-select mode.
75
+ // In case an invalid v-model is provided, we return all options since we can't know what options are valid.
76
const getNonSelectedOptions = (options: GenericOption[]) => options.filter(
- (option) => Array.isArray(selected.value) && !selected.value.includes(option.value),
77
+ (option) => Array.isArray(selected.value) ? !selected.value.includes(option.value) : true,
78
);
79
80
if (props.isSearchable && search.value) {
0 commit comments