Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 377b6c8

Browse files
committed
Make user autocomplete query search beyond prefix
1 parent b68fabb commit 377b6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autocomplete/UserProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default class UserProvider extends AutocompleteProvider {
5656
this.matcher = new QueryMatcher([], {
5757
keys: ['name'],
5858
funcs: [obj => obj.userId.slice(1)], // index by user id minus the leading '@'
59-
shouldMatchPrefix: true,
59+
shouldMatchPrefix: false,
6060
shouldMatchWordsOnly: false,
6161
});
6262

0 commit comments

Comments
 (0)