Javascript error

Created on 23 February 2025, about 1 month ago

Problem/Motivation

Cannot read properties of null (reading 'querySelectorAll')

Steps to reproduce

  • install drupal 10, enable the module
  • configure h container, and set the h2, h3 tags (or what u need)
  • place block
  • visit page, no inpagenav is present, open browser console, see the errors

Proposed resolution

needs investigation

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

10.0

Component

Code

Created by

🇷🇴Romania Andras_Szilagyi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Andras_Szilagyi
  • 🇮🇳India kishan@lnwebworks

    @andras_szilagyi Hello

    I followed your steps and placed the block on a page.

    I found the same errors.
    After reading the module instructions.
    I found that
    We need h tags with wrapper parent elements on the same page.

    So, I added one block with custom code in CKEditor in the block layout.

    <h2 id="section1">
        Section 1
    </h2>
    <p>
        Content for Section 1...
    </p>
    <h3 id="subsection2">
        Subsection 2
    </h3>
    <p>
        Content for Section 2...
    </p>

    and added its parent class ,h3,h2 tags in the configuration.

    Then, I did not find any console errors, and the in-page navigation also started working.

    Please check my attached screenshots.

  • 🇮🇳India kishan@lnwebworks

    Please update the parent class according to requirement and configurations mentioned in the screenshot

Production build 0.71.5 2024