Skip to content

sidebar active class and expand don't work as expect when use "space" in markdown filename #1032

Closed
@csu-feizao

Description

@csu-feizao

Bug Report

Steps to reproduce

  1. create an markdown file and use test sidebar.md as it's name
  2. make sure this markdown file has some content so that can generate some item in sidebar
  3. open the url /#/test%20sidebar
  4. click the sidebar item, and you will see sometimes the item doesn't has active class
  5. create more markdown file, and set loadSidebar to use custom sidebar
  6. config subMaxLevel
  7. click the sidebar item, and you will find out that the sidebar item can't be expanded

What is current behaviour

  1. sidebar item doesn't has active class when click
  2. sidebar item doesn't been expanded when click

What is the expected behaviour

  1. sidebar item has active class when click
  2. sidebar item will be expanded when click
  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Mac OS 10.13.6 (17G65)

  • Node.js version: N/A

  • npm/yarn version: N/A (use index.html)

  • Browser version: Chrome 79.0.3945.130

  • Docsify version: unpkg latest

  • Docsify plugins: N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions