Page MenuHomePhabricator

Scrolling to lead paragraph doesn't work on pages with no headings
Closed, ResolvedPublic

Description

Scrolling to lead paragraph doesn't work on pages with no headings.

Compare these two pages, where the first has no headings, and the second has a "Sources" heading near the end:

After tapping the edit pencil, you see the lead paragraph in the first, but you see the infobox in the second:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 610136 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/MobileFrontend@master] Fix scrolling to lead paragraph when there are no sections

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

Change 610138 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: Double-check that section is not 'undefined'

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

Change 610138 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: Double-check that section is not 'undefined'

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

Change 610136 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Fix scrolling to lead paragraph when there are no sections

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