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