Incorrect field focus when creating new Wiki page
Summary
When a new Wiki page is added, focus remains on the Search field in the main toolbar (CSS: #search) instead of moving to the Page Slug field on the New Wiki Page modal (CSS: #new_wiki_path).
Steps to reproduce
- Navigate to a Project's Wiki.
- Click the 'New Page' button.
- Begin typing a page name.
Example Project
This appears to work in any project.
What is the current bug behavior?
When the user begins typing, the input is received by the Search field. If not discovered by the user in time and the [Enter] key is pressed, the search will execute, resulting in a new page being loaded. This forces the user to navigate back to the Wiki to restart the process.
What is the expected correct behavior?
When the New Wiki Page modal is displayed, focus should move to the Page Slug field, allowing the user to instantly input a name, and save via [Enter] key.