Commit 2c521dd2 authored by Phil Hughes's avatar Phil Hughes

Clears all dropdown menus in issue sidebar when it opens

parent 6e08d5dc
......@@ -29,11 +29,13 @@
watch: {
detail: {
handler () {
this.issue = this.detail.issue;
if (this.showSidebar) {
$('.js-user-search', this.$el).data('glDropdown').clearMenu();
if (this.issue.id !== this.detail.issue.id) {
$('.js-issue-board-sidebar', this.$el).each((i, el) => {
$(el).data('glDropdown').clearMenu();
});
}
this.issue = this.detail.issue;
},
deep: true
},
......
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