diff options
author | winh <winnie@gitlab.com> | 2017-05-18 21:53:14 +0300 |
---|---|---|
committer | winh <winnie@gitlab.com> | 2017-06-02 17:30:37 +0300 |
commit | 0583916d2d9ad19ae342a13ff2a31c9e3bb76547 (patch) | |
tree | 967b2e45b0f60de7b4a0880b35ef5408e05f6e6c /app/assets/javascripts/filtered_search/dropdown_utils.js | |
parent | f032731e47f2ce1c2feb6ff866754202efb6844b (diff) |
Style people in issuable search bar (!11402)
Diffstat (limited to 'app/assets/javascripts/filtered_search/dropdown_utils.js')
-rw-r--r-- | app/assets/javascripts/filtered_search/dropdown_utils.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/filtered_search/dropdown_utils.js b/app/assets/javascripts/filtered_search/dropdown_utils.js index 5c02a7a53d3..ef8fe071012 100644 --- a/app/assets/javascripts/filtered_search/dropdown_utils.js +++ b/app/assets/javascripts/filtered_search/dropdown_utils.js @@ -102,10 +102,13 @@ class DropdownUtils { if (token.classList.contains('js-visual-token')) { const name = token.querySelector('.name'); const value = token.querySelector('.value'); + const valueContainer = token.querySelector('.value-container'); const symbol = value && value.dataset.symbol ? value.dataset.symbol : ''; let valueText = ''; - if (value && value.innerText) { + if (valueContainer && valueContainer.dataset.originalValue) { + valueText = valueContainer.dataset.originalValue; + } else if (value && value.innerText) { valueText = value.innerText; } |