Page MenuHomePhabricator

Wrong focus when adding a new template in mobile view
Closed, DeclinedPublic3 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • open a multi-part template in mobile view
  • click the new template button

What happens?:
The focus does goes to the first element at the right.

Peek 2021-09-15 11-19.gif (827×1 px, 293 KB)

What should have happened instead?:
The focus should got to the template search (like it does in desktop view).

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc: feature flag $wgVisualEditorTransclusionDialogNewSidebar enabled

Event Timeline

thiemowmde added subscribers: thiemowmde, Lena_WMDE.

I can confirm this. For some reason it's only on mobile. Let's have a closer look at this after we resolved T289043 and possibly T290975.

awight set the point value for this task to 3.Sep 15 2021, 1:13 PM

It looks like the reason we don't have an autofocus is due to a change introduced in T141852. The additional !OO.ui.isMobile() condition in BookletLayout.js$212 prevents ve.ui.MWParameterPage from receiving the focus when selected from the sidebar.

This is the same issue just with ve.ui.MWParameterPlaceholderPage instead of ve.ui.MWParameterPage.
Our solution needs to take into account all pages inheriting from OO.ui.PageLayout.

awight changed the task status from Open to Stalled.Sep 20 2021, 10:44 AM

I believe this can be closed as well, see T291080#7362178