Skip to content

Loosing children blocks when typing < backspace > from a block with a title #249

Closed
@Sininho

Description

@Sininho

Search first

  • I searched and no similar issues were found

What Happened?

There can be some data lost when deleting the newline before the a block with a title. If the block before it has children, the children are lost.

Reproduce the Bug

Create a block with a child block, followed by a block with a title, like this:

- (this can be empty)
    - but it has to have a child
- ### this is a block with a title

collapse the first block. (Represented with a + here. The ### automatically get transformed into an H3 and disappear from the edit mode of the block)

+ (this can be empty)
- this is a block with a title

place the cursor at the beginning of the second block and press < backspace >. The two blocks are merged (as expected) but the child block is lost.

- (this can be empty) this is a block with a title

Expected Behavior

The children blocks should not be lost.

Files

No response

Browser, Desktop or Mobile Platform Information

chrome/ ubuntu

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions