BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.49k stars 1.95k forks source link

Nested collapsible blocks: Ghost inline-code block #5031

Open david-prv opened 6 months ago

david-prv commented 6 months ago

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