Collapsed comment is automatically expanded when a new comment is added to MR diff

Summary

Collapsed comment is automatically expanded when a new comment is added to MR diff

Steps to reproduce

  • create merge request, switch to Changes tab and comment some line of code
  • collapse the comment
  • add another comment to some line of code - the first one will be expanded. If there were several collapsed comments before, all of them will be expanded

Example Project

https://gitlab.com/atanayno/testing-comments/merge_requests/1/diffs

What is the current bug behavior?

Previously collapsed comments are expanded.

What is the expected correct behavior?

Previously collapsed comments should not be expanded.

Relevant logs and/or screenshots

n/a

Output of checks

This bug happens on GitLab.com