Commit fdf635c0 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Change fix, instead of hacking in a filter clear every time, fix the root...

Change fix, instead of hacking in a filter clear every time, fix the root cause by only selecting elements for that dropdown instance
parent 8dc55ff3
...@@ -331,7 +331,7 @@ GitLabDropdown = (function() { ...@@ -331,7 +331,7 @@ GitLabDropdown = (function() {
if (_this.dropdown.find('.dropdown-toggle-page').length) { if (_this.dropdown.find('.dropdown-toggle-page').length) {
selector = ".dropdown-page-one " + selector; selector = ".dropdown-page-one " + selector;
} }
return $(selector); return $(selector, this.instance.dropdown);
}; };
})(this), })(this),
data: (function(_this) { data: (function(_this) {
...@@ -543,8 +543,6 @@ GitLabDropdown = (function() { ...@@ -543,8 +543,6 @@ GitLabDropdown = (function() {
this.options.opened.call(this, e); this.options.opened.call(this, e);
} }
if (this.options.filterable) this.filter.filter();
return this.dropdown.trigger('shown.gl.dropdown'); return this.dropdown.trigger('shown.gl.dropdown');
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment