UIO Table Of Contents does not render headings if active at page load

Description

If UIO Table Of Contents is active at page load, the list of headings is not rendered.

To reproduce:

  • With the UIO Table Of Contents off, navigate to the Browse Stories page

  • Open UIO and turn Table Of Contents on

  • The page headings are rendered under "Table of Contents"

  • Click Build Your Story

  • Click Browse Stories

Expect:

  • Table Of Contents to display as before

Actual:

  • The "Table of Contents" heading is shown but no page headings are listed

To get the headings back again:

  • Open UIO and turn Table Of Contents off

  • Reload the page

  • Open UIO and turn Table Of Contents on

Environment

None

Activity

Show:

Justin Obara July 9, 2019 at 8:36 PM

If the headings are dynamically added to the page, the Table of Contents will need to be run after it or at least refreshed after it. Perhaps hooking it up to a MutationObserver would be the best way.  Might make more sense upstream in Infusion. What do you think?

Details

Assignee

Reporter

Priority

Created January 25, 2019 at 8:02 PM
Updated July 9, 2019 at 8:36 PM