(v4.1.2) Fixed autocomplete bug with many options

This commit is contained in:
DJj123dj
2026-02-06 17:45:31 +01:00
parent b95b8f239e
commit 24d98aeaeb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ With the amazing support of our translators, we've been able to translate Open T
|🟢 |❓ Catalan |guillee3 | |🟢 |❓ Catalan |guillee3 |
|🟢 |🇮🇩 Indonesian |erxg | |🟢 |🇮🇩 Indonesian |erxg |
|🟢 |🇮🇳 Hindi |challenger_nova | |🟢 |🇮🇳 Hindi |challenger_nova |
|🟢⏳ |🇩🇪 German |benzorich | |🟢 |🇩🇪 German |benzorich |
|🟢⏳ |🇪🇸 Spanish |redactado & josuens | |🟢⏳ |🇪🇸 Spanish |redactado & josuens |
|🟢⏳ |🇫🇷 French |guillee.3 | |🟢⏳ |🇫🇷 French |guillee.3 |
|🟢⏳ |🇵🇹 Portuguese |quiradon | |🟢⏳ |🇵🇹 Portuguese |quiradon |
+1 -1
View File
@@ -1389,7 +1389,7 @@ export class ODAutocompleteResponderInstance {
else return raw else return raw
}) })
const filteredChoices = newChoices.filter((choice) => choice.name.startsWith(this.target.value) || choice.value.toString().startsWith(this.target.value)) const filteredChoices = newChoices.filter((choice) => choice.name.startsWith(this.target.value) || choice.value.toString().startsWith(this.target.value)).slice(0,25)
return await this.autocomplete(filteredChoices) return await this.autocomplete(filteredChoices)
} }
} }