WebIDE: New/upload file drop down is missing for sub-directories

Summary

I opened up the WebIDE to make changes to the www-gitlab-com project and noticed that the drop down to add a new file or directory is missing for sub-directories. This occurred in Chrome Version 79.0.3945.117 (Summarize the bug encountered concisely)

Steps to reproduce

  • Open the webIDE
  • Expand a parent folder and try to find the element for sub-directories

Example Project

(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)

(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)

What is the current bug behavior?

(What actually happens)

What is the expected correct behavior?

The UI element to add files/directories should exist for sub-directories (What you should see instead)

Relevant logs and/or screenshots

Screen_Shot_2020-01-17_at_12.48.48_PM Screen_Shot_2020-01-17_at_12.48.41_PM

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

This occurs on gitlab.com

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

References

Edited by Paul Slaughter