Skip to content

Commit 0e77911

Browse files
authored
use exact search instead of fuzzy search for branch filter dropdown (#19893)
1 parent 736b7b2 commit 0e77911

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web_src/js/features/repo-common.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ export function initRepoCommonBranchOrTagDropdown(selector) {
7878
export function initRepoCommonFilterSearchDropdown(selector) {
7979
const $dropdown = $(selector);
8080
$dropdown.dropdown({
81-
fullTextSearch: true,
81+
fullTextSearch: 'exact',
8282
selectOnKeydown: false,
8383
onChange(_text, _value, $choice) {
84-
if ($choice.data('url')) {
85-
window.location.href = $choice.data('url');
84+
if ($choice.attr('data-url')) {
85+
window.location.href = $choice.attr('data-url');
8686
}
8787
},
88-
message: {noResults: $dropdown.data('no-results')},
88+
message: {noResults: $dropdown.attr('data-no-results')},
8989
});
9090
}
9191

0 commit comments

Comments
 (0)