Click on "Expand all files" does not correctly expand some files
Problem
When some files are collapsed in a merge request diff, there are two ways to expand them:
- Top warning has CTA to "expand all files"
- Individual files have an option to "click to expand it"
Currently, when the top CTA button is clicked, some of the files are NOT expanded but instead offer the option to dowload. This should not the case, the files should be expanded the same way they are when individually expanded.
Steps to reproduce
- Go to gitlab-com/www-gitlab-com!66075 (diffs)
- Click Expand All Files or Expand All
- Notice the last file shows "Download" button.
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Possible fixes
We need to make sure the same action is triggered when expanding all in bulk as it is triggered individually.
Edited by André Luís