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
As per subject. Using the JavaScript method would have it duplicate the TOC generated, which seemingly seems to be caused by the following code in bootstrap-toc.js:
At the end of the file. It seems it adds the data-toggle to the element you choose in the function just above, and then this initialises the TOC again. Commenting it out fixed the issue for me.
The text was updated successfully, but these errors were encountered:
So sorry for not getting back to you sooner. You need to make sure you don't have the data-toggle="toc" attribute if you are initializing the plugin via JavaScript. I made the example more clear in d08947a. Feel free to re-open if that doesn't solve your issue!
As per subject. Using the JavaScript method would have it duplicate the TOC generated, which seemingly seems to be caused by the following code in bootstrap-toc.js:
$(function() { $('nav[data-toggle="toc"]').each(function(i, el) { var $nav = $(el); Toc.init($nav); }); });
At the end of the file. It seems it adds the data-toggle to the element you choose in the function just above, and then this initialises the TOC again. Commenting it out fixed the issue for me.
The text was updated successfully, but these errors were encountered: