summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gl_dropdown.js
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-05-21 10:50:59 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-05-27 12:33:47 +0800
commit3141b800b74576d5b5dfc84a96353fea47ae974b (patch)
tree4c05719b059496e1d0ecbac1d595e5c85a2d1fd8 /app/assets/javascripts/gl_dropdown.js
parente59c3f8e3ad2e9b6a3431fa94d629eb6d5043972 (diff)
downloadgitlab-ce-3141b800b74576d5b5dfc84a96353fea47ae974b.tar.gz
Also fixes flaky spec
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r--app/assets/javascripts/gl_dropdown.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index 1c6b18c0e03..b9fe75c3664 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -335,6 +335,10 @@ GitLabDropdown = (function() {
_this.fullData = data;
_this.parseData(_this.fullData);
_this.focusTextInput();
+
+ // Update dropdown position since remote data may have changed dropdown size
+ _this.dropdown.find('.dropdown-menu-toggle').dropdown('update');
+
if (
_this.options.filterable &&
_this.filter &&