Compatibility Issue with BetterDocs TOC and Elementor Versions After 3.24.8

[ad_1]

Hello BetterDocs Support Team,

We’ve encountered an issue with the BetterDocs TOC widget in Elementor after updating beyond version 3.24.8. Any version of Elementor after 3.24.8 (including the latest, 3.25.6) causes numerous console errors related to invalid selectors generated by the TOC widget, specifically:

Invalid selector: '#0-toc-title' getAnchorTarget @ frontend.min.js?ver=3.25.6

The error seems to occur because the TOC widget is generating anchor links with IDs like #0-toc-title, which are invalid and result in JavaScript errors. This significantly affects our site’s functionality, especially when many errors are generated in the console.

Steps to Reproduce:

  1. Update Elementor to any version after 3.24.8.
  2. Use the BetterDocs TOC widget to generate an in-page table of contents.
  3. Open the browser console to observe multiple Invalid selector errors referencing #0-toc-title.

Request: Could you please investigate this compatibility issue and release an update to ensure BetterDocs TOC works smoothly with Elementor versions after 3.24.8? Correctly handling anchor IDs would prevent these invalid selectors and improve site performance.

Thank you for your help and for maintaining such a valuable plugin. Looking forward to your support!

Best regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer