Skip to content

Commit

Permalink
use exact search instead of fuzzy search for branch filter dropdown (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent bb49c17 commit c8ffb13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web_src/js/features/repo-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ export function initRepoCommonBranchOrTagDropdown(selector) {
export function initRepoCommonFilterSearchDropdown(selector) {
const $dropdown = $(selector);
$dropdown.dropdown({
fullTextSearch: true,
fullTextSearch: 'exact',
selectOnKeydown: false,
onChange(_text, _value, $choice) {
if ($choice.data('url')) {
window.location.href = $choice.data('url');
if ($choice.attr('data-url')) {
window.location.href = $choice.attr('data-url');
}
},
message: {noResults: $dropdown.data('no-results')},
message: {noResults: $dropdown.attr('data-no-results')},
});
}

Expand Down

0 comments on commit c8ffb13

Please sign in to comment.