diff --git a/resources/js/views/contribution/VIndex.vue b/resources/js/views/contribution/VIndex.vue index ac6b4037..76b1359e 100644 --- a/resources/js/views/contribution/VIndex.vue +++ b/resources/js/views/contribution/VIndex.vue @@ -9,7 +9,7 @@
- +
searchRaw.value, + get: () => realSearchString.value, set: async (v) => { - searchRaw.value = v; + realSearchString.value = v; results.value = (await search(v, ['birthday IS NOT NULL', 'address IS NOT EMPTY'])).hits; }, @@ -80,12 +80,12 @@ function onSubmitMemberResult(selected) { values.value.members.push(selected.id); } - searchRaw.value = ''; - searchTextField.value.$el.querySelector('input').focus(); + realSearchString.value = ''; + searchInput.value.$el.querySelector('input').focus(); } function onSubmitFirstMemberResult() { if (results.value.length === 0) { - searchRaw.value = ''; + realSearchString.value = ''; return; }