Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-14 18:09:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-14 18:09:04 +0300
commita3dfd311f4660fc81e929058abd6e136ac884ed3 (patch)
tree4d7087cac6e2ca89df3adea98f92b9eddffa7790 /app/assets/javascripts/users_select
parent7f408a3831590a1f98a1e1a04b63acba8937e36b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/users_select')
-rw-r--r--app/assets/javascripts/users_select/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/users_select/index.js b/app/assets/javascripts/users_select/index.js
index 498d7b74093..7c17ce85cc6 100644
--- a/app/assets/javascripts/users_select/index.js
+++ b/app/assets/javascripts/users_select/index.js
@@ -257,7 +257,11 @@ function UsersSelect(currentUser, els, options = {}) {
deprecatedJQueryDropdown.options.processData(term, users, callback);
});
},
- processData(term, data, callback) {
+ processData(term, dataArg, callback) {
+ // Sometimes the `dataArg` can contain special dropdown items like
+ // dividers which we don't want to consider here.
+ const data = dataArg.filter((x) => !x.type);
+
let users = data;
// Only show assigned user list when there is no search term