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:
- Update Elementor to any version after 3.24.8.
- Use the BetterDocs TOC widget to generate an in-page table of contents.
- 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