You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing is, this creates the Toc nav which is then created again when the document ready method in your library is fired - so I'm ending up with multiple UL's in the nav creating repeating headings.
Do you have any suggestions on what I should do?
The text was updated successfully, but these errors were encountered:
Just to follow up, this ended up being an order of operations issue. I called init prior to your library running its document.ready function, so the page contained a nav data-toggle="toc" (since your lib adds that attribute) at the time even when the default HTML markup only contained a <nav id="toc"></nav>.
Totally my fault, but I'm wondering if there's a way to safeguard against my error.
I'm not sure if this is an issue with the implementation or something I'm doing.
I want to run some code prior to initializing Toc, and I want to run it after the document is ready, so it looks something like this:
The thing is, this creates the Toc nav which is then created again when the document ready method in your library is fired - so I'm ending up with multiple UL's in the nav creating repeating headings.
Do you have any suggestions on what I should do?
The text was updated successfully, but these errors were encountered: