Skip to content

Commit fbfaea6

Browse files
committed
fix(multiselect): check value type correctly
was resetting every value passed to v-model because `value` is always going to be an object
1 parent 2c7901c commit fbfaea6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/inputs/dropdown/Multiselect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const emit = defineEmits([
195195
'search',
196196
]);
197197
const { value, zoaEvent } = useChangeEmits(emit, props);
198-
if (!Array.isArray(value)) {
198+
if (!Array.isArray(value.value)) {
199199
// needs to be initialised as an array or the checkboxes will all select as
200200
// one, but returning an empty array as the default prop breaks reactivity
201201
value.value = [];

0 commit comments

Comments
 (0)