process_increment_ok
This commit is contained in:
parent
2c3ba1ec92
commit
1a8fe960ad
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user