fix: auto select the first element in completion
This commit is contained in:
parent
53421bcbfd
commit
133f69f607
@ -430,6 +430,7 @@ function chooseUser() {
|
|||||||
onUpdated(() => {
|
onUpdated(() => {
|
||||||
setPosition();
|
setPosition();
|
||||||
items.value = suggests.value?.children ?? [];
|
items.value = suggests.value?.children ?? [];
|
||||||
|
selectNext();
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -448,6 +449,7 @@ onMounted(() => {
|
|||||||
exec();
|
exec();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user