(v4.1.2) Fixed autocomplete bug with many options
This commit is contained in:
@@ -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 |
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user