Nested collapsible blocks: Ghost inline-code block #4792

Open
opened 2026-02-05 09:16:01 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @david-prv on GitHub (May 23, 2024).

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

Originally created by @david-prv on GitHub (May 23, 2024). ### 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/eb88fc24-6296-4017-ad72-98df5fe8af7c) 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
OVERLORD added the 🐛 Bug📝 WYSIWYG Editor labels 2026-02-05 09:16:01 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4792