Merge branch 'fix-completion-focus' into 'develop'
fix: auto select the first element in completion See merge request firefish/firefish!10539
This commit is contained in:
commit
1f8bb6e905
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue