Skip to content

When Sidebar is not loaded and is hidden, page-to-page navigation will shortly stop due to error #1907

Closed
@paulhibbitts

Description

@paulhibbitts

Bug Report

Steps to reproduce

  1. Create two pages with links to each other
  2. Set loadSidebar: false and hideSidebar: true
  3. View Docsify site, and navigate between 2 pages several times

What is current behaviour

Viewing the console will reveal an error (TypeError: null is not an object (evaluating 'e.parentNode')), and navigating between pages will stop working.

What is the expected behaviour

No console error, and navigating between pages will continue working.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS:

  • Node.js version:

  • npm/yarn version:

  • Browser version:

  • Docsify version:

  • Docsify plugins:

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions