Skip to content

Commit c8ffb13

Browse files
wxiaoguangAbdulrhmnGhanem
authored andcommitted
use exact search instead of fuzzy search for branch filter dropdown (go-gitea#19885)
1 parent bb49c17 commit c8ffb13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web_src/js/features/repo-common.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ export function initRepoCommonBranchOrTagDropdown(selector) {
110110
export function initRepoCommonFilterSearchDropdown(selector) {
111111
const $dropdown = $(selector);
112112
$dropdown.dropdown({
113-
fullTextSearch: true,
113+
fullTextSearch: 'exact',
114114
selectOnKeydown: false,
115115
onChange(_text, _value, $choice) {
116-
if ($choice.data('url')) {
117-
window.location.href = $choice.data('url');
116+
if ($choice.attr('data-url')) {
117+
window.location.href = $choice.attr('data-url');
118118
}
119119
},
120-
message: {noResults: $dropdown.data('no-results')},
120+
message: {noResults: $dropdown.attr('data-no-results')},
121121
});
122122
}
123123

0 commit comments

Comments
 (0)