mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-16 03:20:53 +02:00
don't show autocomplete if the only suggestion is exact match
This commit is contained in:
@@ -222,7 +222,14 @@ window.app.components.codeEditor = function(propsArg = {}) {
|
||||
});
|
||||
}
|
||||
|
||||
if (!suggestions?.length) {
|
||||
if (
|
||||
!suggestions?.length
|
||||
// don't show if the only suggestion is exact match
|
||||
|| (
|
||||
suggestions.length == 1
|
||||
&& (suggestions[0].value || suggestions[0]) == match.word
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user