diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-18 15:53:16 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-18 15:53:16 +0000 |
commit | c5d026a0d3a0389716ed8b73ffe0081a3c1d3899 (patch) | |
tree | 03242d70372d85d075af559bc275276e19573b7c | |
parent | 9280fd4acda1da9ed2435bd83d96892d77f37e90 (diff) | |
download | gitlab-ce-c5d026a0d3a0389716ed8b73ffe0081a3c1d3899.tar.gz |
Fixed issue with filtered data persisting when dropdown closeddropdown-persits-filtered-data
Closes #14401
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js.coffee | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee index c81e8bf760a..960585245d7 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -167,7 +167,11 @@ class GitLabDropdown hidden: => if @options.filterable - @dropdown.find(".dropdown-input-field").blur().val("") + @dropdown + .find(".dropdown-input-field") + .blur() + .val("") + .trigger("keyup") if @dropdown.find(".dropdown-toggle-page").length $('.dropdown-menu', @dropdown).removeClass PAGE_TWO_CLASS |