fix: auto select the first element in completion

This commit is contained in:
Louis-Dominique Dubeau 2023-07-29 19:38:51 -04:00
parent 53421bcbfd
commit 133f69f607

View File

@ -430,6 +430,7 @@ function chooseUser() {
onUpdated(() => {
setPosition();
items.value = suggests.value?.children ?? [];
selectNext();
});
onMounted(() => {
@ -448,6 +449,7 @@ onMounted(() => {
exec();
});
},
{ immediate: true },
);
});
});