Skip to content

Fix jQuery data attribute caching issue causing expanding issues

What does this MR do?

  • Use vanilla dataset to retrieve data-line-type attribute

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

In parallel diff view, find resolve/collapsed diff comment. Page-load and try to expand the diff.


Command Result
$link.data('lineType') ''
$link.data('line-type') ''
$link.attr('data-line-type') 'new'
$link[0].dataset.lineType 'new'

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/32705

Edited by Eric Eastwood

Merge request reports

Loading