From 133f69f607407ee3d6ef82e00b41beab146aa999 Mon Sep 17 00:00:00 2001 From: Louis-Dominique Dubeau Date: Sat, 29 Jul 2023 19:38:51 -0400 Subject: [PATCH] fix: auto select the first element in completion --- packages/client/src/components/MkAutocomplete.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client/src/components/MkAutocomplete.vue b/packages/client/src/components/MkAutocomplete.vue index 5fcee6e5ac..550798e218 100644 --- a/packages/client/src/components/MkAutocomplete.vue +++ b/packages/client/src/components/MkAutocomplete.vue @@ -430,6 +430,7 @@ function chooseUser() { onUpdated(() => { setPosition(); items.value = suggests.value?.children ?? []; + selectNext(); }); onMounted(() => { @@ -448,6 +449,7 @@ onMounted(() => { exec(); }); }, + { immediate: true }, ); }); });