Page MenuHomePhabricator

After an edit, collapsing items takes 2 clicks to expand sections in table of contents
Open, LowPublicBUG REPORT

Description

This edge case is follow up work to T316033.

Steps to replicate the issue (include links if applicable):

What happens?:
Actual: Nothing. Clicking again collapses.

What should have happened instead?:
Expected: Collapses

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Just noticed the following as well. Probably the same issue:

  1. Go to https://test.wikipedia.org/wiki/TOC_toggle_button#Subheading
  2. Edit a section to add a new sub-section
  3. Save the edit
  4. Collapse the section the new edit is in
  5. Select the arrow again

Expected: Section uncollapsed
Observed: Section remains collapsed