From 1b20a69c5e83967ce9344d34341ebe4b42c2cac1 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Wed, 12 Oct 2022 14:07:22 -0800 Subject: [PATCH] fix: select-first to update on items change (#45) --- frontend/components/Form/Select.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/components/Form/Select.vue b/frontend/components/Form/Select.vue index 27e3683..4bd07c4 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(