Clears all dropdown menus in issue sidebar when it opens
This commit is contained in:
parent
6e08d5dc5e
commit
2c521dd245
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue