Steps to replicate the issue (include links if applicable):
- Go to https://en.wikipedia.org/w/index.php?title=Wikipedia:Administrators%27%20noticeboard/Incidents&useskin=minerva&debug=true
- click the Extension:Inputbox field in the Noticeboard archives box.
What happens?:
- The main search field receives focus
- mediawiki.page.ready has installed a focus handler on all search inputs
- this handler loads the skins.minerva.search module
- the skins.minerva.search module loads the Vue typeahead search widget
- this widget somehow assumes it is only loaded for the main search field and give focus to that field.
Search inputs selected by page ready module:
return element.id === 'searchInput' ||
element.classList.contains( 'mw-searchInput' );This never used to be a problem because the old searchsuggest module supported multiple search inputs, but the new one only supports 'main search'.
What should have happened instead?:
- The clicked search field receives focus
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):