From 60ef2a7c67c33287be1872b8d4ee3de6a38ed3a9 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 16 Feb 2021 03:03:32 +0000 Subject: Add fullTextSearch to dropdowns by default (#14694) This PR adds `fullTextSearch: 'exact'` to most dropdown invocations meaning that if there is a search box for the dropdown it will automatically do a fullTextSearch looking for the provided fragment instead of starting at the beginning We should consider changing other places that use `fullTextSearch: true` to `'exact'` because these will be using a fuzzy-textual search that doesn't necessarily return the expected results. Fix #14689 Signed-off-by: Andrew Thornton --- web_src/js/features/gitgraph.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web_src/js/features') diff --git a/web_src/js/features/gitgraph.js b/web_src/js/features/gitgraph.js index 570d16059f..cd2668ad35 100644 --- a/web_src/js/features/gitgraph.js +++ b/web_src/js/features/gitgraph.js @@ -74,6 +74,7 @@ export default async function initGitGraph() { $('#flow-select-refs-dropdown').dropdown('set selected', dropdownSelected); $('#flow-select-refs-dropdown').dropdown({ clearable: true, + fullTextSeach: 'exact', onRemove(toRemove) { if (toRemove === '...flow-hide-pr-refs') { params.delete('hide-pr-refs'); -- cgit v1.2.3