Unable to post comments on snippets
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "regression" or "bug" label.
For the Community Edition issue tracker:
- https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug
For the Enterprise Edition issue tracker:
- https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug
and verify the issue you're about to submit isn't a duplicate.
--->
### Summary
Clicking the submit button on the comment on a snippet takes forever.
### Steps to reproduce
1. Write a comment on a snippet.
1. Click submit.
1. It takes forever to submit.
### Example Project
This bug can be reproduced on [Debian Salsa](https://salsa.debian.org) running GitLab Community Edition 12.0.3
### What is the current *bug* behavior?
Submit button stays clicked, but the comment never gets submitted.
### What is the expected *correct* behavior?
The comment should be submitted on the snippet page.
### Relevant logs and/or screenshots

issue