Fixed issue with filtered data persisting when dropdown closed

Closes #14401
This commit is contained in:
Phil Hughes 2016-03-18 15:53:16 +00:00
parent 9280fd4acd
commit c5d026a0d3

View file

@ -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