summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-01-07 01:46:55 -0600
committerMike Greiling <mike@pixelcog.com>2017-01-10 12:30:44 -0600
commit8dc13eca9a4865bbd2afb5ef2ca9697a2324a88e (patch)
tree74395604540decf1f9a393e0a42d516ba989a252
parent80917acd7ef8ce43fce0e657f9538ae79c537729 (diff)
downloadgitlab-ce-8dc13eca9a4865bbd2afb5ef2ca9697a2324a88e.tar.gz
fix failing tests
-rw-r--r--app/assets/javascripts/gl_dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index bb516b3d2df..a669d8bd4e2 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -251,7 +251,7 @@
_this.fullData = data;
_this.parseData(_this.fullData);
_this.focusTextInput();
- if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val().trim() !== '') {
+ if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val() && _this.filter.input.val().trim() !== '') {
return _this.filter.input.trigger('input');
}
};