Navbar search dropdown does not appear if user starts a search on page load
Summary
When starting a search in the top navbar during/soon after page load, the dropdown which shows the scopes and autocomplete options does not appear unless the user focuses away from the search field and back again.
Steps to reproduce
- Reload a page where the topnav search bar is present
- Immediately focus/click into the search field (throttling network speed in inspector tools can make this more apparent)
- Notice – no dropdown appears
❌ - Start typing – still no dropdown
❌ - Focus away from search field and back again
- Now the dropdown appears
✅
What is the current bug behavior?
The dropdown does not appear when immediately focusing/clicking into search field on page load.
- Additionally, the shortcut icon is still visible while the search field is focused (and should not be), and the clear icon is not visible as the user types.
- Focusing away from the search field and back again fixes the issue.
What is the expected correct behavior?
The dropdown should appear as well as provide autocomplete suggestions as they type. The shortcut icon should not be visible when the search field is in focus.