Clears all dropdown menus in issue sidebar when it opens

This commit is contained in:
Phil Hughes 2017-01-19 10:54:02 +00:00
parent 6e08d5dc5e
commit 2c521dd245

View file

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