mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
topic_list: Set typeahead to only match when the prefix matches.
This commit is contained in:
committed by
Tim Abbott
parent
27587fe6b9
commit
aa49b54fb4
@@ -564,7 +564,7 @@ export function setup_topic_search_typeahead(): void {
|
||||
return typeahead_helper.render_topic_state(item);
|
||||
},
|
||||
matcher(item: string, query: string) {
|
||||
return item.toLowerCase().includes(query.toLowerCase());
|
||||
return item.toLowerCase().startsWith(query.toLowerCase());
|
||||
},
|
||||
sorter(items: string[]) {
|
||||
return items;
|
||||
|
||||
Reference in New Issue
Block a user