Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

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

Hayden1b20a69c5e83
diff --git a/frontend/components/Form/Select.vue b/frontend/components/Form/Select.vue
index 27e36839..4bd07c40 100644
--- a/frontend/components/Form/Select.vue
+++ b/frontend/components/Form/Select.vue
@@ -74,12 +74,8 @@
selectedIdx.value = idx;
}
- watch(
- () => props.modelValue,
- () => {
- syncSelect();
- }
- );
+ watch(() => props.items, syncSelect);
+ watch(() => props.modelValue, syncSelect);
const selectedIdx = ref(0);
watch(