Skip to content

Fix incorrect behaviour of markdown toolbar buttons in new issues

Himanshu Kapoor requested to merge 404293-glform-fix into master

What does this MR do and why?

On the new issue page, GLForm is loaded twice, once in app/assets/javascripts/issues/index.js and second in app/assets/javascripts/vue_shared/components/markdown/field.vue. This caused all buttons on the toolbar to work twice.

Screenshots or screen recordings

Before After
Screen_Recording_2023-04-03_at_09.45.26 Screen_Recording_2023-04-03_at_09.37.38

How to set up and validate locally

  1. Create a new issue
  2. Insert a link

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #404293 (closed)

Edited by Himanshu Kapoor

Merge request reports