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;
}
watch(
() => props.modelValue,
() => {
syncSelect();
}
);
watch(() => props.items, syncSelect);
watch(() => props.modelValue, syncSelect);
const selectedIdx = ref(0);
watch(