mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-10 16:27:26 +02:00
don't show autocomplete if the only suggestion is exact match
This commit is contained in:
1 parent
229240b374
commit
d0b441bc24
7 files changed
+15
-8
No files matched your search
@@ -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