diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index 15f4dc9399acf655f7e7f0a3c7c170d4e898c994..31cb4549711b7380112c24da8823b38493040944 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -56,7 +56,7 @@
       // We are in the Merge Requests page so we need another edit form for Changes tab
       if (gl.utils.getPagePath(1) === 'merge_requests') {
         $('.note-edit-form').clone()
-          .addClass('mr-discussion-edit-form').insertAfter('.note-edit-form');
+          .addClass('mr-note-edit-form').insertAfter('.note-edit-form');
       }
     }
 
@@ -569,10 +569,10 @@
     };
 
     Notes.prototype.getEditFormSelector = function($el) {
-      var selector = '.note-edit-form:not(.mr-discussion-edit-form)';
+      var selector = '.note-edit-form:not(.mr-note-edit-form)';
 
       if ($el.parents('#diffs').length) {
-        selector = '.note-edit-form.mr-discussion-edit-form';
+        selector = '.note-edit-form.mr-note-edit-form';
       }
 
       return selector;
diff --git a/spec/features/notes_on_merge_requests_spec.rb b/spec/features/notes_on_merge_requests_spec.rb
index 7c62e510392ca359f00c8a4fbfc434d53f07faef..d93f1ef8f810d327072e5776be7b3d384a9ab69c 100644
--- a/spec/features/notes_on_merge_requests_spec.rb
+++ b/spec/features/notes_on_merge_requests_spec.rb
@@ -71,7 +71,8 @@ describe 'Comments', feature: true do
 
     describe 'when editing a note', js: true do
       it 'there should be a hidden edit form' do
-        is_expected.to have_css('.note-edit-form', visible: false, count: 1)
+        is_expected.to have_css('.note-edit-form:not(.mr-note-edit-form)', visible: false, count: 1)
+        is_expected.to have_css('.note-edit-form.mr-note-edit-form', visible: false, count: 1)
       end
 
       describe 'editing the note' do
diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js
index d3bfa7730fa29029f8532a30e08a346677a4cfb0..bb13af7ac0c1f02ed6d2efdcdd2a5dce462904e6 100644
--- a/spec/javascripts/notes_spec.js
+++ b/spec/javascripts/notes_spec.js
@@ -19,6 +19,7 @@
       fixture.load(commentsTemplate);
       gl.utils.disableButtonIfEmptyField = _.noop;
       window.project_uploads_path = 'http://test.host/uploads';
+      $('body').data('page', 'projects:issues:show');
     });
 
     describe('task lists', function() {