{"id":18767361,"date":"2025-12-25T17:38:31","date_gmt":"2025-12-25T17:38:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/toc-issue-3\/"},"modified":"2025-12-25T17:38:31","modified_gmt":"2025-12-25T17:38:31","slug":"toc-issue-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/toc-issue-3\/","title":{"rendered":"ToC issue"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When using the ToC block, it works with errors. The first time you click a link in the ToC, it scrolls to the target heading correctly, but when you try to click it again, scrolling doesn&#8217;t work and an error appears in the dev console.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Uncaught TypeError: Cannot read properties of null (reading 'scrollIntoView')<br \/>    at HTMLAnchorElement.&lt;anonymous&gt; (frontend.js?ver=6d9a\u202631b13202082c:1:5337)<br \/>(anonymous)\t@\tfrontend.js?ver=6d9a7c6\u2026:1<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-18767361","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18767361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18767361\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18767361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}