diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-06 11:31:48 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-06 11:31:48 +0100 |
commit | c9e8c618f50a88898478d46b61292c57bb50646d (patch) | |
tree | fd267e22827c3f31399550c9dd055bbb665c434b | |
parent | 34dae2285c5f868d80300806fd969b9b2ae674e0 (diff) | |
download | gitlab-ce-c9e8c618f50a88898478d46b61292c57bb50646d.tar.gz |
fixed dropdown not re-showing the content
-rw-r--r-- | app/assets/javascripts/ide/components/ide_side_bar.vue | 13 | ||||
-rw-r--r-- | app/assets/javascripts/ide/components/merge_requests/item.vue | 2 |
2 files changed, 7 insertions, 8 deletions
diff --git a/app/assets/javascripts/ide/components/ide_side_bar.vue b/app/assets/javascripts/ide/components/ide_side_bar.vue index 945a7b981f5..4f4c10918ca 100644 --- a/app/assets/javascripts/ide/components/ide_side_bar.vue +++ b/app/assets/javascripts/ide/components/ide_side_bar.vue @@ -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(); }); }, diff --git a/app/assets/javascripts/ide/components/merge_requests/item.vue b/app/assets/javascripts/ide/components/merge_requests/item.vue index 907c274bf4d..b50fc8a3dbb 100644 --- a/app/assets/javascripts/ide/components/merge_requests/item.vue +++ b/app/assets/javascripts/ide/components/merge_requests/item.vue @@ -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 |