Commit c9e8c618 authored by Phil Hughes's avatar Phil Hughes

fixed dropdown not re-showing the content

parent 34dae228
......@@ -72,11 +72,9 @@ export default {
});
},
loading() {
if (!this.loading) {
this.$nextTick(() => {
this.addDropdownListeners();
});
}
this.$nextTick(() => {
this.addDropdownListeners();
});
},
},
mounted() {
......@@ -89,11 +87,12 @@ export default {
},
methods: {
addDropdownListeners() {
if (!this.$refs.mergeRequestDropdown) return;
$(this.$refs.mergeRequestDropdown)
.on('show.bs.dropdown', () => {
this.toggleMergeRequestDropdown();
})
.on('hide.bs.dropdown', () => {
}).on('hide.bs.dropdown', () => {
this.toggleMergeRequestDropdown();
});
},
......
......@@ -42,7 +42,7 @@ export default {
<button
type="button"
class="btn-link d-flex align-items-center"
@click.prevent.stop="clickItem"
@click="clickItem"
>
<span class="d-flex append-right-default ide-merge-request-current-icon">
<icon
......
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