When adding a new template the input field to search for a template should get focus. This is working when using the buttons but not, when invoking the dialog to add a template or when the template placeholder is the last page due to removal of other pages.
Description
Details
Event Timeline
Change 811705 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):
[mediawiki/extensions/VisualEditor@master] Autofocus template input field on dialog open
Change 811705 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Autofocus template input field on dialog open
I'm partially reverting code which implemented the last requirement in the description:
when the template placeholder is the last page due to removal of other pages.
I don't think this is a safe design, it also causes focus to be bounced around in situations which we didn't intend such as after removing a parameter.
Change 812265 had a related patch set uploaded (by Awight; author: Awight):
[mediawiki/extensions/VisualEditor@master] Don't refocus content pane after removals
Change 812265 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Don't refocus content pane after removals