Page MenuHomePhabricator

[Regression ?] "Next" button stays disabled on MobileFrontend wikitext editor after switching from Mobile VE
Closed, ResolvedPublic

Description

Steps to replicate:

  1. Open Mobile VE for any page.
  2. Switch to wikitext
  3. Type something

The "Next" button stays disabled even after making a change on the surface.

Event Timeline

Ryasmeen renamed this task from [Regression ?] "Next" button stays disabled on Mobile NWE after saving an edit to [Regression ?] "Next" button stays disabled on Mobile NWE after saving an edit with Mobile VE.Mar 5 2019, 1:12 AM
Ryasmeen renamed this task from [Regression ?] "Next" button stays disabled on Mobile NWE after saving an edit with Mobile VE to [Regression ?] "Next" button stays disabled on Mobile NWE after switching from Mobile VE.Mar 5 2019, 1:16 AM
Ryasmeen updated the task description. (Show Details)

Btw, this is happening on en.wiki too, therefore setting up the priority as at-least High if not UBN. Talked to @ppelberg about it.

Ryasmeen triaged this task as High priority.Mar 6 2019, 1:29 AM
Esanders renamed this task from [Regression ?] "Next" button stays disabled on Mobile NWE after switching from Mobile VE to [Regression ?] "Next" button stays disabled on MobileFrontend wikitext editor after switching from Mobile VE.Mar 6 2019, 5:51 PM
Esanders updated the task description. (Show Details)
Esanders added a subscriber: matmarex.
DLynch added a subscriber: Niedzielski.

Seems to be the result of a8be7d15e94a8e by @Niedzielski, which changed how constructors initialize events. It passes event handlers into constructors, and does a non-deep merge of existing options with util.extend. This breaks if the existing options have any event handlers already.

Change 495002 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/MobileFrontend@master] EditorOverlay: deep-extend of options in constructor

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

That patch handles this ticket's case. We should probably go through all the changes in that patch and make sure that switching them to deep-extend won't cause any issues.

Change 495002 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] EditorOverlay: deep-extend of options in constructor

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

ppelberg awarded a token.