"Create merge request and branch" from issue not correctly sets branch name input field after title alteration
Summary
Using the Create merge request and branch from an issue automatically creates an branch name in the input field. The predefined placeholder gets created on first access to the issue. After changing the title of the issue, the placeholder gets not updated to the new title. After a force reload of the issue, the placeholder will be updated to the current title of the issue.
I would expect an updated branch name. Probably nobody before me thought about changing the title and then creating branch and merge request without reloading the issue page.
Steps to reproduce
- Create issue in a repo
- Click on the Create merge request button
- Take a look at the recommended branch name
- Change the issue title
- Click in the Create merge request button
- Take a look at the recommended branch name which does not match the changed issue title
Example Project
https://gitlab.com/schwedenmut/branchName but also works on every issue currently on GitLab.com and self hosted.
What is the current bug behavior?
The recommended branch name will only be set on load of the issue page.
What is the expected correct behavior?
The recommended branch name should be loaded like the title asynchronous or get updated on the fly.
Relevant logs and/or screenshots
After title change | After reload |
---|---|
![]() |
![]() |
Output of checks
This bug happens on GitLab.com
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)