8000 Jumping to anchor inside details doesn't open it · Issue #540 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Jumping to anchor inside details doesn't open it #540

@max-ci

Description

@max-ci

Description

If you click on the footnote arrow at the bottom of the page and footnote is inside details it doesn't jump to the note (when details is closed).

Expected behavior

Appropiate details should be opened when you click on the footnote arrow and it should jump to the note.

Actual behavior

Clicking on the arrow doesn't work when footnote is inside details and details is closed.

Steps to reproduce the bug

  1. Create footnote in details.
  2. Click on the footnote arrow at the bottom of the page (details must be closed).

Package versions

  • MkDocs: 1.12.1
  • Material: 0.16.3

Project configuration

Irrelevant

System information

Irrelevant

Possible fix:

  1. Detect if footnote is inside details
  2. If yes - preventDefault(), if no - normal behaviour
  3. Check if details is opened, if yes - change hash in the url, if no - open it and change hash in the url

Metadata

Metadata

Assignees

Labels

change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0