See error spam in console stemming from toc query selector var oldActiveTocLink = tocElement.querySelector("." + options.activeLinkClass);
Uncaught TypeError: Cannot read properties of undefined (reading 'querySelector')
at Object.updateToc (chunk-Z2YT5RER.js?v=aaea24c7:257:41)
at HTMLDocument.<anonymous> (chunk-Z2YT5RER.js?v=aaea24c7:648:16)
at HTMLDocument.<anonymous> (chunk-Z2YT5RER.js?v=aaea24c7:736:10)
Describe the bug
Console error spam from toc (table of contents), if toc: { disable: true } is set and scrolling is triggered.
To Reproduce
https://stackblitz.com/edit/github-jmtuvf?file=.storybook%2Fpreview.ts,src%2Fstories%2FButton.stories.ts&preset=node
preview.tsx
Button.stories.ts
var oldActiveTocLink = tocElement.querySelector("." + options.activeLinkClass);
System
Additional context
Many thanks in advance!