mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
make watcher immediate
This commit is contained in:
parent
4189f21c9e
commit
14c8da64cc
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Reference in a new issue