mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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);
|
return typeahead_helper.render_topic_state(item);
|
||||||
},
|
},
|
||||||
matcher(item: string, query: string) {
|
matcher(item: string, query: string) {
|
||||||
return item.toLowerCase().includes(query.toLowerCase());
|
return item.toLowerCase().startsWith(query.toLowerCase());
|
||||||
},
|
},
|
||||||
sorter(items: string[]) {
|
sorter(items: string[]) {
|
||||||
return items;
|
return items;
|
||||||
|
|||||||
Reference in New Issue
Block a user