Commit 363f7a57 authored by Phil Hughes's avatar Phil Hughes

Empty the content before append anything to the dropdown

parent 5a097455
...@@ -361,7 +361,9 @@ class GitLabDropdown ...@@ -361,7 +361,9 @@ class GitLabDropdown
selector = '.dropdown-content' selector = '.dropdown-content'
if @dropdown.find(".dropdown-toggle-page").length if @dropdown.find(".dropdown-toggle-page").length
selector = ".dropdown-page-one .dropdown-content" selector = ".dropdown-page-one .dropdown-content"
$(selector, @dropdown).append html $(selector, @dropdown)
.empty()
.append html
# Render the row # Render the row
renderItem: (data, group = false, index = false) -> renderItem: (data, group = false, index = false) ->
......
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