From 24d98aeaebd7ee9983fa8986121f5db3aacd4e19 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:45:31 +0100 Subject: [PATCH] (v4.1.2) Fixed autocomplete bug with many options --- README.md | 2 +- src/core/api/modules/responder.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0378ef7..979eb8f 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ With the amazing support of our translators, we've been able to translate Open T |🟢 |❓ Catalan |guillee3 | |🟢 |🇮🇩 Indonesian |erxg | |🟢 |🇮🇳 Hindi |challenger_nova | -|🟢⏳ |🇩🇪 German |benzorich | +|🟢 |🇩🇪 German |benzorich | |🟢⏳ |🇪🇸 Spanish |redactado & josuens | |🟢⏳ |🇫🇷 French |guillee.3 | |🟢⏳ |🇵🇹 Portuguese |quiradon | diff --git a/src/core/api/modules/responder.ts b/src/core/api/modules/responder.ts index dbe78ea..ce3bebe 100644 --- a/src/core/api/modules/responder.ts +++ b/src/core/api/modules/responder.ts @@ -1389,7 +1389,7 @@ export class ODAutocompleteResponderInstance { 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) } }