process_increment_ok

This commit is contained in:
Pascal 2025-01-06 16:33:22 +01:00 committed by NicolasCantu
parent 7a05de3d36
commit b539bb8fee

View File

@ -188,8 +188,17 @@ function populateAutocompleteList(select: HTMLSelectElement, query: string, drop
let options_to_show;
if (dropdown) options_to_show = autocomplete_options;
else options_to_show = autocomplete(query, autocomplete_options);
if (dropdown) {
let messagingCounter = 1;
options_to_show = autocomplete_options.map(option => {
if (option === 'messaging') {
return `messaging ${messagingCounter++}`;
}
return option;
});
} else {
options_to_show = autocomplete(query, autocomplete_options);
}
const wrapper = select.parentNode;
const input_search = wrapper?.querySelector('.search-container');