Skip to content

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

Description

@dfmdkai

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

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions