Top nav search bar produces console error when unauthenticated
Summary
Focusing the top nav search bar triggers a console error. Thankfully since it's just a simple form input, search still works regardless.
Still, we shouldn't be producing this error.
Steps to reproduce
- Click/focus on the top nav search input
- Check console, and observe console error
What is the current bug behavior?
Console error produced.
What is the expected correct behavior?
Don't produce console error.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
We try to check for the glDropdown
instance when it's not created for unauthenticated users.