Skip to content

Sidebar opening/closing sometimes doesn't open/close it #2520

@WaffleLapkin

Description

@WaffleLapkin

Problem

Sometimes the button to open sidebar seems to do nothing.

Steps

  1. Go to https://doc.rust-lang.org/nightly/reference/type-coercions.html
  2. open dev tools
  3. click on the hamburger in the left top corner until one of your clicks doesn't make the sidebar open/close
  4. observe the fact that <body> has incorrect class (sidebar-visible is the sidebar is hidden and vice-versa)
  5. click on the hamburger again and observe that the classes are still incorrect

Possible Solution(s)

No response

Notes

The bug is random, so sometimes you need to click a lot before it happens. And sometimes it happens once in about 4 clicks. 🤷

Also is reproducible in both firefox and chrome.

Version

I can reproduce with mdbook v0.4.43

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions