mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +00:00
fix select-first to update on items change
This commit is contained in:
parent
14f1b93d38
commit
fb8a5faf6c
1 changed files with 2 additions and 6 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue