fix: increase maxItems for autocomplete to improve user experience

This commit is contained in:
Will Miao
2025-09-12 14:01:52 +08:00
parent a0c2d9b5ad
commit d5a280cf2b
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ class AutoComplete {
this.inputElement = inputElement;
this.modelType = modelType;
this.options = {
maxItems: 15,
maxItems: 20,
minChars: 1,
debounceDelay: 200,
showPreview: true,

View File

@@ -285,7 +285,7 @@ export function setupInputWidgetWithAutocomplete(node, inputWidget, originalCall
// Initialize autocomplete on first callback if not already done
if (!autocomplete && inputWidget.inputEl) {
autocomplete = new AutoComplete(inputWidget.inputEl, 'loras', {
maxItems: 15,
maxItems: 20,
minChars: 1,
debounceDelay: 200
});