Collapsing/extending Diff file isn't always triggered
Summary
When in MR review, clicking a Diff file's header doesn't necessarily trigger file to collapse/expand.
Steps to reproduce
- Open an MR
- Go to "Changes" tab
- Pick a file you want to collapse/expand and click on anything that is not header's background (see red areas on the screenshot). Only clicking the green area on the screenshot performs the action.
- File won't collapse/expand
What is the current bug behavior?
Diff file doesn't get expanded/collapsed when clicked on any DOM element within Dif file's header. It works only when clicking empty area of the header itself.
What is the expected correct behavior?
Diff file should be collapsed/expanded no matter what are of the header user clicks. With the exception for clicking .file-actions
on the right.