Page MenuHomePhabricator

Focus lost when tabbing into a VE surface
Closed, ResolvedPublicBUG REPORT

Description

This task is about adjusting what part of the New Discussion Tool comes into focus when pressing the key.

Behavior

  1. Visit a talk page on a wiki where you have the New Discussion Tool enabled. E.g. https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Cats .
  2. Open the New Discussion Tool by clicking the Add topic affordance at the top of the talk page
  3. Notice the New Discussion Tool opens, with your cursor/browser's focus in the Title field
  4. Press
  5. Notice the Source tab above the Description field comes into focus (you should see a square box around it)
  6. Press

Expected

  1. ✅ Your cursor is shown within the New Discussion Tool's Description frield

Actual

  1. ❗️The New Discussion Tool becomes "out of focus." Said another way: no part of the New Discussion Tool is shown in active state.

Event Timeline

Tacsipacsi changed the subtype of this task from "Task" to "Bug Report".Oct 27 2021, 11:08 AM
Tacsipacsi subscribed.

Note: the default mode should be visual for this bug to surface. If the default mode is source (as is the global default for this beta wiki), it works as expected. (At least for me, logged out, in a private window.)

It affects source mode also, but only if the enhanced editor is enabled ("Enable editing tools in source mode").

Apparently that's disabled on the beta cluster, which seems wrong to me (it's enabled on all production wikis). But that's a separate problem. (fixing in https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/735014)

Esanders renamed this task from Tabbing within the New Discussion Tool changes focus unexpectedly to Focus lost when tabbing into a VE surface.Oct 28 2021, 3:04 PM
Esanders added a project: Regression.

Change 735402 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Follow-up I61b477d1: Use setTimeout instead of afterLoopOne

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

Change 735402 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Follow-up I61b477d1: Use setTimeout instead of afterLoopOne

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

Change 735448 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (2cd3eb52d)

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

Change 735448 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (2cd3eb52d)

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

This works fine. I opened the New Discussion Tool by clicking the New Section link at the top of the page and got the expected result. I have attached screenshots for reference.

Screenshot 2021-10-30 at 11.12.30.png (256×2 px, 62 KB)

Screenshot 2021-10-30 at 11.05.59.png (902×1 px, 142 KB)

ppelberg claimed this task.