fix select-first to update on items change

This commit is contained in:
Hayden 2022-10-12 13:35:57 -08:00
parent 14f1b93d38
commit fb8a5faf6c

View file

@ -74,12 +74,8 @@
selectedIdx.value = idx; selectedIdx.value = idx;
} }
watch( watch(() => props.items, syncSelect);
() => props.modelValue, watch(() => props.modelValue, syncSelect);
() => {
syncSelect();
}
);
const selectedIdx = ref(0); const selectedIdx = ref(0);
watch( watch(