From 14c8da64cce16264c2b5760de0ca476b7f980421 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Wed, 12 Apr 2023 22:38:27 +0200 Subject: [PATCH] make watcher immediate --- client/src/components/inputs/DropdownInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/inputs/DropdownInput.vue b/client/src/components/inputs/DropdownInput.vue index 8e406d5..8812948 100644 --- a/client/src/components/inputs/DropdownInput.vue +++ b/client/src/components/inputs/DropdownInput.vue @@ -68,7 +68,7 @@ watch(() => props.modelValue, async (val) => { return console.warn(`Unknown key in DropdownInput:`, val/*, options*/); } modelValue = val; -}, { deep: true }); +}, { deep: true, immediate: true }); watch($$(modelValue), () => emit('update:modelValue', modelValue), { deep: true }); let search = $ref(props.search); watch(() => props.search, (val) => { if (!equals(val, search)) search = val; }, { deep: true });