In Web IDE, committing by pressing the Enter key, erases the commit message
Summary
Steps to reproduce
- Open the Web IDE
- Make some changes
- Go to Commit tab
- Fill the Commit Message
- Check Create a new branch
- Type a branch name
- While leaving the focus on the branch input, press Enter key
- The Commit Message is removed
What is the current bug behavior?
The Commit Message is removed.
What is the expected correct behavior?
The commit should be submitted.
Relevant logs and/or screenshots
No console logs available
Output of checks
This bug happens on GitLab.com
Possible fixes
app/assets/javascripts/ide/components/commit_sidebar/form.vue#L183-19
Changes the type of the *Commit" button to "submit", to avoid the default action on the Discard draft.