Returning back from a misclick when creating a new issue with applied template, hides original content of the issue

Summary

When creating a new issue where an issue template is being applied and after modifying the contents of said issue, if during the assignments of attributes like Milestones, you misclick on a link that takes you to another page and immediately go back to the new issue, the existing contents are hidden and only the blank template is shown. If you choose to apply No template and refresh the original content is restored.

Seems to me that if a template is selected it will be applied everytime even though the most important thing is the "state" of the content previous to the misclick.

Steps to reproduce

  • Create new issue
  • Add title
  • Choose a template
  • Modify the template
  • Misclick on a link that takes you to another page
  • Go back to the previous page
  • See that the issue content is reverted to the contents of the template

To remedy this:

  • Set the template to No template
  • Refresh page
  • Content restored.

What is the current bug behavior?

gitlab_issue_bug_43

What is the expected correct behavior?

The correct behavior would be for the content of the new issue to be the exact one before the misclick.

Edited by 🤖 GitLab Bot 🤖