BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Nested collapsible blocks: Ghost inline-code block

Open david-prv opened this issue 1 year ago • 0 comments

Describe the Bug

When using at least two nested collapsible blocks, the inline-code blocks start to behave weirdly. Some of the blocks can't be deleted nor used anymore (except using the code view) and are just shifted around when doing for instance line breaks. Also, in some cases (sorry, I can't really describe it yet) the blocks seem to create new ghost blocks (compare attached video).

Steps to Reproduce

  1. Create new page
  2. Created nested collapsible blocks (minimum depth should be at least 2)
  3. Create inline-code blocks (I used keyboard shortcut STRG+SHIFT+E)
  4. Play a little bit with it, e.g. write something into it, make line breaks, empty them again, etc.
  5. You should start to create ghost code blocks as well.

Expected Behaviour

When doing the same things outside of the collapsible blocks, they behave just fine. They keep deleteable and don't duplicate.

Screenshots or Additional Context

image

https://github.com/BookStackApp/BookStack/assets/66866223/da038549-1c2e-4fb7-90f0-e82f6963f6d7

Browser Details

Vivaldi 6.7.3329.31 (Stable channel) stable (64-bit)

Exact BookStack Version

v24.05.1

david-prv avatar May 23 '24 13:05 david-prv