Commit 6cc8a376 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'fix-weird-jquery-data-attribute-caching-issue-in-notes' into 'master'

Fix jQuery data attribute caching issue causing expanding issues

Closes #32705

See merge request !11609
parents 18a6d9c5 5563bf9c
......@@ -860,11 +860,12 @@ const normalizeNewlines = function(str) {
Notes.prototype.onAddDiffNote = function(e) {
e.preventDefault();
const $link = $(e.currentTarget || e.target);
const link = e.currentTarget || e.target;
const $link = $(link);
const showReplyInput = !$link.hasClass('js-diff-comment-avatar');
this.toggleDiffNote({
target: $link,
lineType: $link.data('lineType'),
lineType: link.dataset.lineType,
showReplyInput
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment