Getting error "Cannot read property 'target' of undefined" while opening VE from section edit link
Closed, ResolvedPublic1 Story Points

Description

Steps to reproduce:

  1. Open VE and add something to the page
  2. Save the page
  3. Now click on the Section edit link to open VE

Observed Result:
Observe that, there is an error "Cannot read property 'target' of undefined" that appears briefly in the console.
If I add something more to the page and again save, there is another error in the console "Uncaught TypeError: Cannot read property 'getToolbarDialogs' of null"

Ryasmeen created this task.Mar 1 2017, 8:10 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 1 2017, 8:10 PM

The second error also appears when adding new section using NWE, so I reported a separate issue on it here T159377

Change 340776 had a related patch set uploaded (by DLynch):
[mediawiki/extensions/VisualEditor] DesktopArticleTarget: Correctly bind section link handler

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

Change 340776 merged by DLynch:
[mediawiki/extensions/VisualEditor] DesktopArticleTarget: Correctly bind section link handler

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

Jdforrester-WMF set the point value for this task to 1.Mar 2 2017, 10:18 PM
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.
Jdforrester-WMF assigned this task to DLynch.
Jdforrester-WMF closed this task as Resolved.
Jdforrester-WMF triaged this task as Unbreak Now! priority.
Restricted Application added a project: User-Ryasmeen. · View Herald TranscriptMar 2 2017, 10:18 PM
Restricted Application added subscribers: Jay8g, TerraCodes. · View Herald Transcript
Ryasmeen edited projects, added Verified; removed Patch-For-Review.Mar 2 2017, 10:22 PM
Ryasmeen moved this task from To be Verified to Verified on the User-Ryasmeen board.