Drop down list to change master in Merge Request creation form does not work
Summary
Drop down list to change master in Merge Request creation form does not work, and pressing the "change branches" link beside it causes the state of all fields on the page to be lost.
Steps to reproduce
Create a new merge request, fill in several of the fields, try to toggle branch drop down and nothing will appear, select the "change branches" link and the content of the fields you have filled in will be lost.
Expected behavior
Drop down should contain a list of branches to merge to. If the "change branches" link exists, should not destroy form state.
Actual behavior
Drop down is empty, "change branches" link causes form fields to be emptied.
Relevant logs and/or screenshots
Game plan/Implementation:
quoting @ClemMakesApps
It would probably be ideal to make the dropdowns not disabled but for the meantime, an easy fix would be to persist the form data in localstorage so that switching between branches doesn't clear out all the input
-
Fix persistent form data https://gitlab.com/gitlab-org/gitlab-ce/issues/27366 -
Fix editable branch dropdown on MR creation screen https://gitlab.com/gitlab-org/gitlab-ce/issues/22090