mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-04 12:04:58 +01:00
fix: select-first to update on items change (#45)
This commit is contained in:
@@ -74,12 +74,8 @@
|
||||
selectedIdx.value = idx;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
() => {
|
||||
syncSelect();
|
||||
}
|
||||
);
|
||||
watch(() => props.items, syncSelect);
|
||||
watch(() => props.modelValue, syncSelect);
|
||||
|
||||
const selectedIdx = ref(0);
|
||||
watch(
|
||||
|
||||
Reference in New Issue
Block a user