1
0
Fork 1
mirror of https://github.com/hay-kot/homebox.git synced 2024-12-20 05:46:31 +00:00

fix: select-first to update on items change ()

This commit is contained in:
Hayden 2022-10-12 14:07:22 -08:00 committed by GitHub
parent a8e1d2c447
commit 1b20a69c5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(