Skip to content

TOC headings appear out of order with multiple blocksΒ #757

@matthewspear

Description

@matthewspear

πŸ‘‹ Hey – helping out my girlfriend with a Webflow bug, we're running into issues with finsweet/attributes and the table of contents.

  • Investigated issue with TOC generated by @finsweet/attributes: headings from two rich text blocks appear out of order in the TOC.
  • Used MutationObserver and network throttling to confirm headings are inserted in the DOM in the correct order.
  • Despite correct DOM order, the TOC renders the lower block's heading at the top.
  • Both blocks are inside the their own TOC content containers / rich text elements; heading IDs are unique.

Has anyone else come across this or have a work around?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions