Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested collapsible block won't respond (open) to TOC click #4878

Closed
dfmdkai opened this issue Mar 1, 2024 · 1 comment
Closed

Nested collapsible block won't respond (open) to TOC click #4878

dfmdkai opened this issue Mar 1, 2024 · 1 comment

Comments

@dfmdkai
Copy link

dfmdkai commented Mar 1, 2024

Describe the Bug

When a TOC element is clicked and the header is in a collapsible block, the current behaviour is to position the page and automatically open that section. However a nested collapsible block will not work if the parent block is closed. So no child element will be triggered to show and open.
Instead nothing will happen.

If the parent is open the behavior is as expected, page is positioned and the block opened

Steps to Reproduce

  1. Create a collapsible block
  2. Create another collapsible block inside the first one
  3. Place text in the first and second one with a header to be picked up as TOC element
  4. Close all blocks and try to open the child header

Expected Behaviour

If the header is selected in the TOC, the collapsible block should open down the actual element so it can be postioned and read.

Screenshots or Additional Context

image

Browser Details

Chrome Version 121.0.6167.189 (Official Build) (64-bit)

Exact BookStack Version

24.02

@ssddanbrown
Copy link
Member

Thanks for reporting @dfmdkai.
I've addressed this in 5a5f0b8 to be part of the next patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants