Page MenuHomePhabricator

Insert/Template inspector should put focus on input text_field when invoked but no longer does
Closed, ResolvedPublic

Description

Seen in Firefox and Chrome:

Edit any page in VE, e.g. http://en.wikipedia.beta.wmflabs.org/wiki/Media_Interface_VisualEditor_Test?veaction=edit

Click Insert/Template

The input text field briefly shows a cursor and a blue bar indicating that the element has focus, but then the focus disappears. User should be able to type directly into text field without needing to click the text field element first, but no longer can.

This is the failure at https://integration.wikimedia.org/ci/view/BrowserTests/view/-All/job/browsertests-VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome-sauce/423/testReport/(root)/VisualEditor%20Transclusion/Add_parameter_to_template/

Event Timeline

Cmcmahon raised the priority of this task from to Needs Triage.
Cmcmahon updated the task description. (Show Details)
Cmcmahon subscribed.
Cmcmahon claimed this task.

This no longer happens

Still happening for me - Mac - betalabs FF, Chrome and Windows7 IE.

Etonkovidova updated the task description. (Show Details)
Etonkovidova set Security to None.
gerritbot subscribed.

Change 186505 had a related patch set uploaded (by Mooeypoo):
Focus the add template input in the template dialog

https://gerrit.wikimedia.org/r/186505

Patch-For-Review

Change 186505 merged by jenkins-bot:
Focus the add template input in the template dialog

https://gerrit.wikimedia.org/r/186505

On Firefox 35 Mac, I am editing Wikipedia with the Visual Editor.

By habit, I type "{{cit". This brings a dialog for choosing a template with one field for typing the name. But the "cit" went nowhere. And typing the name does nothing. I have to click in the field first. It would be nice to have the focus in the field. Thus, when we type, by habit, "{{cit", the characters "cit" would go in the field for the template name.

Thank you.