mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-16 13:48:44 +00:00
fix: select-first to update on items change (#45)
This commit is contained in:
parent
a8e1d2c447
commit
1b20a69c5e
1 changed files with 2 additions and 6 deletions
|
@ -74,12 +74,8 @@
|
|||
selectedIdx.value = idx;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
() => {
|
||||
syncSelect();
|
||||
}
|
||||
);
|
||||
watch(() => props.items, syncSelect);
|
||||
watch(() => props.modelValue, syncSelect);
|
||||
|
||||
const selectedIdx = ref(0);
|
||||
watch(
|
||||
|
|
Loading…
Reference in a new issue