"Include description in commit message" not working immediately after creating MR
Summary
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7722 introduced "Include description in commit message" option which appears after clicking "Modify commit message". This link does not work (description is not being added) when you click it immediately after submitting the merge request. If you refresh the page the link works correctly. If you navigate to the merge request page from the merge request list the link also works correctly.
Steps to reproduce
- Create a MR (I used our UI for editing a file)
- Click "Modify commit message"
- Click "Include description in commit message"
Expected behavior
Description is added to the commit message.
Actual behavior
Page scrolls to the top.
Relevant logs and/or screenshots
Nothing relevant in Chrome Developer Tools console.
Version
I reproduced it with master pointing to 65046d9a.
Impact
Low. I don't think that many people accept merge request immediately after submitting it.