diff options
author | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-07-05 11:59:57 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-07-05 11:59:57 +0000 |
commit | 45deb92544c84c51f617c38bc1f1454653c23ce0 (patch) | |
tree | 2c7af5cbbab701685f59093631888a53ed972871 /app | |
parent | fe695ebd24e59f82d16aba629dd6d117be3ee5bb (diff) | |
download | gitlab-ce-45deb92544c84c51f617c38bc1f1454653c23ce0.tar.gz |
Resolve "When editing a comment in an issue, the preview mode is toggled in the main textarea"
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/header.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/header.vue b/app/assets/javascripts/vue_shared/components/markdown/header.vue index 83171ae50b8..8c22f3f6536 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/header.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/header.vue @@ -29,8 +29,8 @@ methods: { isValid(form) { return !form || - form.find('.js-vue-markdown-field').length || - $(this.$el).closest('form') === form[0]; + form.find('.js-vue-markdown-field').length && + $(this.$el).closest('form')[0] === form[0]; }, previewMarkdownTab(event, form) { |